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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Adham
Helper III
Helper III

Query contains unknown function name: Python.Execute

Hello All,

 

I have got a Power BI file which i am trying to upload to the Power Service and schedule refreshes. I get my data from Asana using the PowerBI Asana (Beta) connector. I then run some Python scripts using the data imported from Asana as (#dataset) to clean and manipulate the data (I dont not upload data using python).

 

However, i get this error when i try to refresh or schedule the dataset in PowerBI service.

 

cc.PNG

 

I downloaded the personal gateway as scheduling datasets with Python scripts is supported on it. The personal gateway is up and running fine but i think i need to allow python somehow on powerbi service.

 

I tried to upload the file and schedule refreshes without the python script and it worked well, which means that the python scripts are the issue. Is it something in the permissions maybe as show in the image below? I would appreciate some help.

 

ll.PNG

 

4 REPLIES 4
v-alq-msft
Community Support
Community Support

Hi, @Adham 

 

The error message says 'the following data soureces currently don't support schedual refresh'. I wonder what difference the python scripts have made to the data from Asana, which make it unsupported to schedual refresh. Please check if there is something wrong with the python scripts.

 

Best Regards

Allan.

Hello @v-alq-msft 

 

unfortunately i do not know if there is anything wrong with the python scripts, that is why i am asking to see if anyone can help me solve this issue

@v-alq-msfti realised what the problem is. I am using the Asana connector to get the data which doesnt give me the option to use my personal gateway, only the enterprise gateway. Since the python scripts only work on the personal gateways it means that i can not use python scripts to clean my data which is very annoying.

 

Is there a way around this? Why cant i use the personal gateway if i am using the Asana connector??

HeliosOne
Frequent Visitor

Hello All!

 

I have the same error since yesterday in my new PBI Service report. I`m using Python script to get data from external API via POST request and ETL after that.

 

Error details:

Query contains unknown function name: Python.Execute Unknown function name: Python.Execute is a valid Mashup library function name format. Hence fail the operation.

 

My previous reports that use Pyton to ETL over existing dataset work well...

 

Please make a note here if you find a solution. Thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.