Forum Discussion

avaldes's avatar
avaldes
Frequent Visitor
6 years ago

Issue with Drilldown Cartogram visual

Hi, I have a report where I used successfully for a long time the Drilldown Cartogram visual. Recently we fund the following error in the visual: `Invalid Json File` . I remove the visual from the project and import it again and now, when I try to use the visual again, it show nothing. Any idea ?

2 Replies

  • v-xuding-msft's avatar
    v-xuding-msft
    Community Support

    Hi avaldes ,

    Please try to  enable AllowOrigin=* to the root of the website where you are reading this topojson file from. If you are using IIS you can add web.config file to your applicaion root.

    https://enable-cors.org/server_iis7.html

     

     Adding CORS definitions to web.config file like below.

     

    <system.webServer>

        .........

     

      <httpProtocol>
        <customHeaders>
         <add name="Access-Control-Allow-Origin" value="*"/>
         <add name="Access-Control-Allow-Headers" value="Content-Type"/>
         <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS"/>
       </customHeaders>
      </httpProtocol>

     

    Reference:

    https://community.powerbi.com/t5/Issues/Drilldown-Choropleth-Invalid-JSON-File-exception/idi-p/249623

     

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Kudos are nice too.