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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
henryco88
Helper II
Helper II

Error gateway python in power bi service

Hi,

I saved a python script in power bi desktop which reads a table from sql server and creates a pandas dataframe. Everything works correctly. When I publish the report on power bi service, I have an error with the python gateway and therefore I don't see the data:

Extension {"extensionDataSourceKind": "Python", "extensionDataSourcePath": "Python"}

gateway.PNG

I installed "On-premises data gateway (personal mode)" in my pc but I still see the error in power bi service. 

How can I solve it?

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

Hi @henryco88,

AFAIK, the current python script data source only works on gateway personal mode, you cant manage it in the on-premise gateway. 

If you want to enable the refresh on the power bi service side, you need to configure all the data sources used in your report.
I'd like to suggest you switch to a personal gateway if other types of data source supported in this gateway.(live mode data sources do not work on personal mode)

Use personal gateways in Power BI 

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

5 REPLIES 5
vito123
Helper II
Helper II

Hi Guys, 

 

I have the exact same issue now . My question is I already have an enterprise gateway installed and if i install personal gateway for the python to work will I have issues ?

 

Please help!!

 

vito123_0-1691566812766.png

 

Fanz
Frequent Visitor

Hi I'm having a similar issue as well, did you find a solution?

v-shex-msft
Community Support
Community Support

Hi @henryco88,

AFAIK, the current python script data source only works on gateway personal mode, you cant manage it in the on-premise gateway. 

If you want to enable the refresh on the power bi service side, you need to configure all the data sources used in your report.
I'd like to suggest you switch to a personal gateway if other types of data source supported in this gateway.(live mode data sources do not work on personal mode)

Use personal gateways in Power BI 

Regards,

Xiaoxin Sheng

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

I have the same issue and have the on-premises data gateway (Personal mode).

Any idea why this might be the case???

GilbertQ
Super User
Super User

Hi there

Can you confirm that the version of Python that you are using is supported by the Power BI Gateway?

Here are more details to check: https://powerbi.microsoft.com/en-us/blog/python-visualizations-in-power-bi-service/#:~:text=Python%2....

https://sqlitybi.com/how-to-auto-schedule-data-export-from-power-with-pythn/




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

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors