Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
Solved! Go to Solution.
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
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?
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 7 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |