cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
pbertens Regular Visitor
Regular Visitor

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

Accepted Solutions
Moderator v-viig
Moderator

Re: Esri Shapefile in R-Powered custom visual

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

1 REPLY 1
Moderator v-viig
Moderator

Re: Esri Shapefile in R-Powered custom visual

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