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
slc7456
Advocate III
Advocate III

R Script does not work in Power BI Service

Purpose: Publish an R visual to Power BI service 

 

Background: I have created 2 Power BI visuals in Power BI Desktop. Both render correctly in Power BI desktop. However, when I publish to the Power BI serivce, I recieve the below error message 

 

Error in workspace(wsid, auth) : Invalid api_endpoint: https://studioapi.azureml.net  
Please try again later or contact support. If you contact support, please provide these details.

Activity ID28774eb5-c80e-4a07-aab6-f7714b1e4a8f
Request IDd21be851-a03b-1583-2f26-5a7a6f93a90f
Correlation ID48aec683-c3dc-3103-e1dd-5da04a2c0f26
TimeThu Jun 27 2019 09:16:30 GMT-0500 (Central Daylight Time)
Version13.0.9880.163
 
I have confirmed that I am using the correct 
  • Workspace ID
  • Authentication Token
  • Serivce Name 

Does anyone know why this error occurs in the Power BI Serivce, but not desktop

2 REPLIES 2
Anonymous
Not applicable

Hey buddy,

 

Take a look at this documentation from Microsoft, maybe this can clear up something to you.

 

https://docs.microsoft.com/pt-br/power-bi/service-r-packages-support

 

Thanks! I reviewed Microsoft's white paper on R packages in the Power BI service prior to this post. I am using one of their approved packages AzureML. 

But for some reason i'm getting an Invalid api_endpoint error message that I can't explain...

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.