Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Import Custom Theme Error

I am trying to import a custom theme into my Power BI report, but I keep getting an error message

 

{
"name":"Prueba",
"dataColors":["#7030A0","#A421F9","#380091","#4472C4"],
"background":"#B3B0AD​",
"foreground":"#C8C6C4",
"tableAccent":"#A421F8"
}

5 Replies

  • I copied and pasted your JSON into Notepad++ and did a Format as JSON. There was some wierd character string at the end of the "backgroud" node:

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      thanks for you replay , but I tried with note ++ and in my case there is no this no additional characters 

       

       

      • ToddChitt's avatar
        ToddChitt
        Super User

        Did you try to format the pasted text as JSON?

         

         

        Another possible solution, however tedious it is to work, is to start small with your custom JSON theme. Start with name and dataColors only. Apply that. If that works, create a COPY and add to that background. (But save your original in case this edited copy bombs out). AND, when making changes, do NOT copy and paste, type them out manually so as to avoid hidden special characters.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks you , I was able to solve it with your help

  • Please consider marking replies as a Solution to your issue so others facing similar problems can find answers that worked. 

    And if you don't ming my asking: what was the action(s) that fixed it?