Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
When I try to transfer a query that uses a Python script from PBI desktop to a dataflow I get a "path is invalid" error.
Solved! Go to Solution.
Hi @thomas9921 ,
As far as I know, currently we can only run python script in power bi desktop because it needs packages on-premiss, dataflow is created in power bi service which is a cloud service that could not support Python / R script as a data source. We can only use python visuals in power bi service.
Refer: Python visualizations in Power BI Service
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @thomas9921 ,
As far as I know, currently we can only run python script in power bi desktop because it needs packages on-premiss, dataflow is created in power bi service which is a cloud service that could not support Python / R script as a data source. We can only use python visuals in power bi service.
Refer: Python visualizations in Power BI Service
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
hi @thomas9921 ,
I am not a python expert but accorsing to this, you have to use a full path and not a relative path.
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts
Proud to be a Datanaut!
Private message me for consulting or training needs.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.