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

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.

Reply
Anonymous
Not applicable

How to solve this specific Script runtime error for R script on the Power BI Service?

I am getting the following Script Runtime Error after publishing my Power BI Report on the Power BI Service:

Attaching package: 'zoo'The following objects are masked from 'package:base':as.Date, as.Date.numeric
Attaching package: 'dplyr'The following objects are masked from 'package:plyr':arrange, count, desc, failwith, id, mutate, rename, summarise,summarize
The following objects are masked from 'package:stats':filter, lag
The following objects are masked from 'package:base':intersect, setdiff, setequal, union
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:In file(file, "rt") :InternetOpenUrl failed: 'The server name or address could not be resolved'Please try again later or contact support. If you contact support, please provide these details.Show technical details
Copy

My dataset (csv file) comes from my github repository.

In Power BI Desktop (on my local machine), everything works perfectly and data is retrieved without any issues and the script runs fine.

What could be wrong?

 

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@Anonymous - First think I would do is to verify that your R packages (version) are supported by the Service:

https://docs.microsoft.com/en-us/power-bi/connect-data/service-r-packages-support

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks Greg. I did that and all the 5 packages used are indeed supported.

Hi @Anonymous ,

 

For this kind of unknown error that we cannot reproduce, create a support ticket is recommended.If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors