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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Esri Shapefile in R-Powered custom visual

I have an Esri shapefile (local on my hard drive), which i want to use in my R-Powered custom visual for Power BI. In R-Studio I can use readOGR from the rgdal-package. When I use this import method in my r-script for my custom visual), I got the following Runtime error in the developpers mode in PBI-Service:

"error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv,: Cannot open data source".

Can anyone help me to fix this issue.

Thanks!

1 ACCEPTED SOLUTION
v-viig
Community Champion
Community Champion

File reading is not supported because R-script is executed in Power BI servers that do not have access to users' files and drives.

 

To workaround this issue we recommend to pass data as Power BI data column.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

View solution in original post

2 REPLIES 2
bethk
Frequent Visitor

When importing the shapefile as a datasource, instead of in the R visualisation script, the R visualisation is plotting incorrectly(differently to if you ran the full script through R), appearing like some sort of rendering issue. Has anyone else encountered this problem and know of any solutions?

v-viig
Community Champion
Community Champion

File reading is not supported because R-script is executed in Power BI servers that do not have access to users' files and drives.

 

To workaround this issue we recommend to pass data as Power BI data column.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors