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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ELIU
Helper I
Helper I

Extension Python cannot be added to gateway

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!

1 ACCEPTED SOLUTION
v-pnaroju-msft
Community Support
Community Support

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:

  1. 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.

  2. 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.

View solution in original post

2 REPLIES 2
v-pnaroju-msft
Community Support
Community Support

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:

  1. 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.

  2. 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.

uzuntasgokberk
Super User
Super User

Hello @ELIU ,

 

Python Script supports personal gateway. Not other gateways.

 

Kind Regards,

Gökberk Uzuntaş

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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