This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 |
|---|---|
| 11 | |
| 8 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 24 | |
| 23 | |
| 19 | |
| 16 |