Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Custom Shape Maps Unexpected Error

I can find lots of threads where people have this problem, but I can't find one with an actual solution. All I see is people insisting that it works, but it definitely does not work.

 

When I try to load any custom shape map, such as any of these provided by deldersveld I get an "Unexpected Error" message. The details say "Failed to execute 'btoa'". In other threads some people can load these files and others can't. deldersveld says it's a "regional issue" but I don't really know what that means, and I haven't seen anyone offer a way to fix this "regional issue." Does that mean that custom maps just don't work for people who live in certain regions? I find that unbelievable. I am using the latest release of Power BI Desktop, and I am in the United States.

 

I know shape maps are still technically in preview but surely if it works for some people it should work for everyone. Is there seriously no way to fix this? How do I load a custom shape map? Specifically I need a world map of countries.

  • Ok, I think I might know the potential cause of your issue. When you pulled the file off of GitHub, my guess is that you did not save the actual json file. Instead, you probably right-clicked in the ReadMe and did a Save As on the link to the blob. Is that correct?

     

    GitHub shows a preview of TopoJson, GeoJson, etc. blobs on their own page. Unless you download the entire repo, you need to click through the link and save the Raw json instead of the blob preview.

     

14 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      deldersveld It happens with any data set. It even hapens if I type in a random list of countries through Enter Data. Here:

       

      CountryAmount
      Australia87
      Brazil12
      Canada3574
      China564
      France254
      India235
      Italy5254
      Japan84
      Mexico4347
      Russia89
      United States135