Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
evgenyg
Frequent Visitor

Refresh the Python Script in Power Bi Service ask a credentials

Refresh filed with following message:

"""

Scheduled refresh is disabled because at least one data source is missing credentials. To start the refresh again, go to this dataset's settings page and enter credentials for all data sources. Then reactivate scheduled refresh.

"""

 

I am using python script from Microsoft docs.

https://docs.microsoft.com/En-us/power-bi/connect-data/desktop-python-scripts

 

Why it ask a credentials?

2 ACCEPTED SOLUTIONS
GilbertQ
Super User
Super User

Hi there

 

You have to use the Power BI Personal mode gateway in order to refresh Python scripts

 

Here are more details: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwja7fSo_PjsA...





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

Hi @evgenyg,

Yes, the R/Python script was processed in a sandbox instead of direct execute on the cloud server.
They should have a few limitations when you use on the cloudy server(i suppose they may be related to permission and security reasons), so you can only use a personal gateway to handle these scripts.

Power BI data sources 

Power BI Security

Python visualizations in Power BI Service 
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
evgenyg
Frequent Visitor

Hi GilbertQ,

 

thank you for you answer. 

 

Do I understand correctly that the Power BI Service runs python on the local computer through a gateway, and not somewhere in the cloud?

 

Hi @evgenyg,

Yes, the R/Python script was processed in a sandbox instead of direct execute on the cloud server.
They should have a few limitations when you use on the cloudy server(i suppose they may be related to permission and security reasons), so you can only use a personal gateway to handle these scripts.

Power BI data sources 

Power BI Security

Python visualizations in Power BI Service 
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
GilbertQ
Super User
Super User

Hi there

 

You have to use the Power BI Personal mode gateway in order to refresh Python scripts

 

Here are more details: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwja7fSo_PjsA...





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.