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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Mp1977
Helper II
Helper II

Power Bi Service Error - Failed to update data source credentials: ADO.NET: python.exe not found.

Hi!

I have been trying to schedule a refresh using Power BI Service for my Dataset that contains Python scripts. Scripts to get data from a Soap Web Service. I have set a personal gateway with my machine.

When I try to schedule the refresh, I first receive this message error: Your data source can't be refreshed because the credentials are invalid. Please update your credentials and try again.

 

When I go to edit credentials and set my privacy to none or public, I got the following error:

Failed to update data source credentials: ADO.NET: python.exe not found. python.exe was not found in the specified directory. Please make sure you have a complete Python installation.

Activity ID:626c8c0f-80d8-48ef-b109-efd1d9ac5218
Request ID:ec6c6677-073f-3537-d466-0ba573984cbb
Status code:400


I have Python installed in my machine and the refresh works fine in my PBI Desktop. My PBI Desktop has the correct python home directory. The same I use in my visual code studio. It is AppData\Local\Microsoft\WindowsApps

I appreciate any help.

M.



1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @Mp1977 ,

 

Which kind of gateway did you use in your scenario? As the online document , When you publish a Power BI report with Python scripts to the service, these scripts will also be executed when your data is refreshed through the on-premises data gateway in personal mode (personal gateway).

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.