We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I have created Python scripts within a PBIX file. However, when publishing it to the Web Service, I got an error Extension{"extensionDataSourceKind":"Python","extensionDataSourcePath":"Python"} cannot be added to gateway. That means I will not be able to schedule refresh of the data.
Any ideas why? Thanks!
Solved! Go to Solution.
Thankyou, @uzuntasgokberk, for your response.
Hi @ELIU,
We appreciate your inquiry posted on the Microsoft Fabric Community Forum.
Please consider the following approaches which may help resolve your issue:
Install the On-premises Data Gateway (Personal Mode) on the same machine where your Python environment is configured. This setup enables scheduled refreshes using Python scripts. Kindly ensure that Python is installed locally and properly configured in Power BI Desktop. Please note that your machine must remain online during the scheduled refresh intervals, as the refresh process runs locally through the personal gateway.
Alternatively, if you prefer not to depend on a personal machine, you may convert the Python logic into Power Query (M) wherever feasible, as it is fully compatible with enterprise gateways. Additionally, you may utilise Azure services such as Data Factory or Azure Functions to run your Python scripts. The results can be written to cloud databases or storage, which Power BI can then connect to.
If you find our response helpful, we kindly request you to mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.
Should you have any further questions, please feel free to contact the Microsoft Fabric Community.
Thank you.
Thankyou, @uzuntasgokberk, for your response.
Hi @ELIU,
We appreciate your inquiry posted on the Microsoft Fabric Community Forum.
Please consider the following approaches which may help resolve your issue:
Install the On-premises Data Gateway (Personal Mode) on the same machine where your Python environment is configured. This setup enables scheduled refreshes using Python scripts. Kindly ensure that Python is installed locally and properly configured in Power BI Desktop. Please note that your machine must remain online during the scheduled refresh intervals, as the refresh process runs locally through the personal gateway.
Alternatively, if you prefer not to depend on a personal machine, you may convert the Python logic into Power Query (M) wherever feasible, as it is fully compatible with enterprise gateways. Additionally, you may utilise Azure services such as Data Factory or Azure Functions to run your Python scripts. The results can be written to cloud databases or storage, which Power BI can then connect to.
If you find our response helpful, we kindly request you to mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.
Should you have any further questions, please feel free to contact the Microsoft Fabric Community.
Thank you.
Hello @ELIU ,
Python Script supports personal gateway. Not other gateways.
Kind Regards,
Gökberk Uzuntaş
📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!
🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.