Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Good day to all.
I can not publish a report containing the R script in Power Bi.
Could you tell me what to do next?
The script executes the task of calling the stored procedure on MS SQL 2016 and passes parameters to it.
Nothing is returned from the procedure.
From Power BI Desktop everything goes perfectly.
At the publication I receive an error ODBC connection failed. That is, before I run the script, I do not even get there.
I'm using RODBC ([64-bit] R-3.5.1).
I also have a gateway configured with the SQL Server data source type.
Thank you.
Solved! Go to Solution.
Good afternoon, Xiaoxin Sheng!
Thanks for the quick and full answer.
You confirmed my fears.
But, strange as it may seem, this ban led me last night to a decision that was not related to my question. We say - If God closed one door in front of you, do not be upset - He will open another -)
Thank you again.
Hi @MPS,
It seems like you can try to use r script to invoke other datasource, these operation only works on desktop.
For security reasons, power bi service not allow r script to access networks or connector to other data source which out of current dataset.
Please take a look at below documents to know more about limitations about use r script on power bi service:
Creating R visuals in the Power BI service
R visuals are created from R scripts, which could potentially contain code with security or privacy risks.
These risks mainly exist in the authoring phase when the script author run the script on their own computer.
The Power BI service applies a sandbox technology to protect users and the service from security risks.
This sandbox approach imposes some restrictions on the R scripts running in the Power BI service, such as accessing the Internet, or accessing to other resources that are not required to create the R visual.
R visuals in the Power BI service have a few limitations:
There are a handful of requirements and limitations for R packages:
For Power BI Desktop has two variations for R packages:
Regards,
Xiaoxin Sheng
Good afternoon, Xiaoxin Sheng!
Thanks for the quick and full answer.
You confirmed my fears.
But, strange as it may seem, this ban led me last night to a decision that was not related to my question. We say - If God closed one door in front of you, do not be upset - He will open another -)
Thank you again.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.