Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
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
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.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 10 | |
| 10 | |
| 8 | |
| 7 |
| User | Count |
|---|---|
| 40 | |
| 36 | |
| 34 | |
| 28 | |
| 20 |