Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
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).
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 56 | |
| 55 | |
| 37 | |
| 18 | |
| 14 |