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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Error while schedule refresh -

Hi,

 

I am running an R script that pulls data from SQL server, manipulates it etc. I am using this R script as a data source for my report. I installed a gateway (personal mode) as well. However, when I try to set scheduled refresh up it throws me this error. Please suggest any workarounds.

 

Thanks,

HV

 

Capture.PNG

3 REPLIES 3
GilbertQ
Super User
Super User

Hi there

Could you confirm that the R packages you are using is supported by the Power BI Service and Gateway?

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




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi @GilbertQ 

 

Yes, I am using three packages - RODBC, data.table, dplyr. All three are there in the list.

Hi @Anonymous ,

Does everything work fine in Desktop? Refer to the post below, maybe you need to change the version of R:

https://community.powerbi.com/t5/Desktop/R-script-as-data-source-in-Power-BI-Desktop/td-p/685850

https://community.powerbi.com/t5/Developer/Error-when-Refreshing-R-Script-Data/m-p/369255

Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.