This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
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.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 14 | |
| 10 | |
| 10 | |
| 7 | |
| 7 |
| User | Count |
|---|---|
| 37 | |
| 32 | |
| 29 | |
| 22 | |
| 20 |