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
lg01
Advocate II
Advocate II

Python and R in Power Bi service error

We are testing both Python and R in Power Bi. We created a sample with a simple scenario we run into all the time. After data in our table comes in, we add a calculated column in the query builder. This calculated column is somewhat complex and we handle it in a script. We just go to "Transform", pick the script type we need and add the script to the table like one more step. That works just fine in the desktop application. However, when we upload this file to the cloud service, and try to set up the refresh, it fails with an error:

 

Power Bi Data source error: Unable to refresh the model (id=710850) because it references an unsupported data source. 

 

What does that mean? I thought the R and Python services were supported in the cloud services? If the data refresh does not work, can we use it for other functions like create charts or do statistical calculations in the dashboard?

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

R and Python in the Power BI Service mandate the use of a Personal Gateway.

View solution in original post

Brunner_BI
Super User
Super User

You can create Python and R visuals without any problems in the Power BI Service but as @lbendlin points out the data transformation (Power Query) part might require a gateway. 

 

Even though I am a little surprised that it would show the error message you are mentioning.

Can you check what you see in the settings of the semantic model in the Power BI Service?

 

Brunner_BI_0-1724317815137.png

 

------------------------------------
Brunner BI focusing on Microsoft Power BI development and consulting
Developers of external tool "Measure Killer"
My blog

View solution in original post

2 REPLIES 2
Brunner_BI
Super User
Super User

You can create Python and R visuals without any problems in the Power BI Service but as @lbendlin points out the data transformation (Power Query) part might require a gateway. 

 

Even though I am a little surprised that it would show the error message you are mentioning.

Can you check what you see in the settings of the semantic model in the Power BI Service?

 

Brunner_BI_0-1724317815137.png

 

------------------------------------
Brunner BI focusing on Microsoft Power BI development and consulting
Developers of external tool "Measure Killer"
My blog
lbendlin
Super User
Super User

R and Python in the Power BI Service mandate the use of a Personal Gateway.

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.