Forum Discussion
Multiple error generation when using geojson as a reference layer in Azure Maps
- 1 year ago
FYI the root cause of the problem is that some of the "features" (ie. map regions) in my GeoJSON file had "geometry":null - meaning that they were regions that should not be drawn. While most mapping software can handle this problem, Azure Maps reference layers cannot.
If you find yourself with this problem, you will need to delete any features in your GeoJSON file with the "geometry":null tag (see example below). The Power BI devs have told me that they expect a fix to be shipped in a couple of months (but no promises)
Hi Jarvis,
Thanks so much for your response. Unfortunately, your sample pbix also causes the afformentioned errors on my PC.
So I think it is something to do with my version of Power BI and not the shapefiles themselves.
I tried your solutions:
1. Update PBI and Azure maps.
Power BI Desktop is updated to "October 2024" (Version: 2.137.952.0 64-bit (October 2024)). I don't know how to check the version of Azure Maps - do I need to update it seperately to PBI Desktop? If so, how?
2. Bypass Geocode cache
This has no affect and issues are generated in the same way
3. Use JSON instead of GEOJSON
This also has no affect and causes the multiple errors as before.
I have uploaded the original pbix file I am working on (although I am sure it will work for you, as your state example did), which still throws errors for me. You can access via OneDrive here.
Thanks,
Riley
Hi rileywells
I can't access this OneDrive link, if you don't mind please upload your pbix file directly on the post.
Regarding the Azure Maps visual update, when you create an Azure Maps visual in Power BI Desktop, if it is old, the following dialog box will be displayed prompting for an update:
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- rileywells1 year agoFrequent Visitor
Hi Jarvis,
I don't get that error message, so I suppose Azure Maps is up to date.
Unfortunately, I don't have the option to upload a pbix file directly to a post - hopefully this google drive link will work: https://drive.google.com/file/d/1SXsw37Vuf0ItHuUyOzfC2oirEPIUBpeh/view?usp=sharing
- Anonymous1 year agoNot applicable
Hi rileywells
It does work well on my side as you think.
I'm having a hard time finding the cause of the problem due to not being able to reproduce this problem.
It is recommended that you open a ticket and a dedicated Microsoft engineer will resolve the problem for you, this will be free if you are Pro account.
How to create a support ticket in Power BI - Microsoft Fabric Community
Thank you for your understanding.
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- rileywells1 year agoFrequent Visitor
Thanks Jarvis,
I will submit a ticket as you've suggested - thanks for all your help.