cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
naveen_koushal Frequent Visitor
Frequent Visitor

R script do run on Power BI Service

Hello PBI Experts, MVPs,@deldersveld

 

I have a query related to R integration in Power BI. Need immediate help!!

 

I have created a dashboard on Power BI. There is a live direct query connection build between PBI and SQL Azure database.

I have written R script in my dashboard, which do some calculation and save the output on the SQL Azure database. This output then used as input in the PBI using direct query mode. I have created RODBC connectin in my local machine.

The script runs perfectly fine on the PBI desktop however when I publish this dashboard on Power BI service and run the dashboard, R script do not run and throw errors "ODBC connection failed". Is that mean that I need to create ODBC connection on SQL Server? If yes then how to do that. Please respond with suggestion to solve this issue.

 

thanks,

Naveen

8 REPLIES 8
Community Support Team
Community Support Team

Re: R script do run on Power BI Service

Hi naveen_koushal,

 

Have you installed and configured data gateway on your server? Also check if you have configure the data source in "Manage Gateway" in power bi service.

 

Regards,

Jimmy Tao

naveen_koushal Frequent Visitor
Frequent Visitor

Re: R script do run on Power BI Service

Hi Jimmy,

 

Thanks for the support!

 

Could you please more elaborate why do we require data gateway?. My data is already connected with azure sql database. And the error that comes is related to 'ODBC connection failed'.

 

Appreciate if you elaborate the possible solution.

 

Regards,

Naveen

 

 

deldersveld
Advisor

Re: R script do run on Power BI Service

I don't believe you'll be able to setup and use an ODBC connection in Power BI Service. 

 

The gateway is required in general for an R script in Power Query, but it sounds like you have this RODBC connection setup on an R Visual. That wouldn't need a gateway, but again, I don't believe you'll be able to configure ODBC since you don't have access to configure anything in the Service.

naveen_koushal Frequent Visitor
Frequent Visitor

Re: R script do run on Power BI Service

Thanks Delsdersveld. I thinkg I should test running the dashboard after installing Gateway. I will get back to you with my findings.

Regards,

Naveen

naveen_koushal Frequent Visitor
Frequent Visitor

Re: R script do run on Power BI Service

Hi Delsdersveld,

 

When I go to gateway connection tab it says " You don't need gateway for this dataset, because all of its data sources is in the cloud".

 

What do you suggest? Do I still download gateway? I am not sure if it work.

 

Regards,

Naveen

Community Support Team
Community Support Team

Re: R script do run on Power BI Service

naveen_koushal Frequent Visitor
Frequent Visitor

Re: R script do run on Power BI Service

Hi @v-yuta-msft,

 

Thanks for your reply. There is no solution out there in the thread you shared.

 

Please suggest if you have some solution.

 

REgards,

Naveen

Renu Frequent Visitor
Frequent Visitor

Re: R script do run on Power BI Service

Hi Naveen,

Were you able to solve this? We are in the same boat as you and trying to figure out the solution. If you solved it can you please share it with us.

 

Thanks,

Renuka

Helpful resources

Announcements
Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 6 members 4,191 guests
Please welcome our newest community members: