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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
shirishrao
New Member

R script execution error in PBI Service

Hi Everyone

I am trying to execute R script in power BI, but running in to the error regarding socket connection. The same script executes without any error on PBI desktop. Any suggestions are appreciated. Thank You!

pbi.JPG

3 REPLIES 3
shirishrao
New Member

Thank You @lbendlin @Anonymous for your comments. I will look at the gateway settings and R libraries path. Will update as I find the solution. 

Anonymous
Not applicable

Hi @shirishrao 

 

@lbendlin Thank you very much for your prompt reply. Allow me to add something here.

 

In addition to being properly configured to run Personal gateway, you can also check the following:

 

Verify that the R package path is set correctly in Power BI. In Power BI, go to Transform Data > Run R Script and check the paths.

 

vnuocmsft_0-1715568806897.png

 

Ensure that the R script is compatible with the Power BI Service environment.

 

Check if there are any firewall or network settings that might be blocking the socket connection. 

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Are you using a Personal Gateway?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.