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
Hello everyone!
I am trying to schedule a refresh using Power BI Service for my dataset that contains Python script which is:
import pandas as pd
data = [['Alex',10],['Bob',12],['Clarke',13]]
df = pd.DataFrame(data,columns=['Name','Age'],dtype=float)
print (df)
I have a On-premises data gateway (personal mode) installed.
So far Iโve tried:
Privacy level of a source is set to Public both in PBI Service and PBI Desktop.
Python version: Python 3.10.2
Windows version: 21H1 Windows 10 Pro, Build 19043.1110
PBI Desktop version: 2.100.1401.0 64-bit
I am really confused. Any help is appreciated!
@chulpanvl Have you managed to find a way around it by any chance? I am having the exact same issue.
Are you using a normal python environment - Yes, I uninstalled Anaconda and now using just a normal python env.
and using an older version of python - Yes, I uninstalled 3.10 and reinstalled 3.7.7.
Does it refresh properly on the desktop - Yes, it doesn't throw any error messages.
In case If this info can help
My Python path
Data source settings
And a personal gateway seems to work properly
โ
If there is no problem now, you can mark the reply that is helpful to you and close this thread. Thank you.
Best Regards,
Community Support Team _ Janey
Hi, @chulpanvl
Not sure if the latest version of python is supported according to the doc.
More details:
Learn which Python packages are supported - Power BI | Microsoft Docs
Create Power BI visuals using Python in Power BI Desktop - Power BI | Microsoft Docs
It is recommended to use an older version of python, and powerbi desktop and gateway can be downloaded the latest version normally.
I suggest you open the data source settings in desktop and delete the previous credentials and update it. Delete the original report in the service and re-publieh the report.
You can create a simple sample file to see if there is a problem.
Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _ Janey
Are you using a normal python environment and using an older version of python? Does it refresh properly on the desktop? If not, please show a screenshot of the error message.
Janey
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!