Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Import Custom Theme Error

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

 

nmartinez_0-1692127326133.png

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

5 REPLIES 5
ToddChitt
Super User
Super User

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?




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Anonymous
Not applicable

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

ToddChitt
Super User
Super User

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:

ToddChitt_0-1692131540889.jpeg

 




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Anonymous
Not applicable

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

nmartinez_0-1692188220569.png

 

 

Did you try to format the pasted text as JSON?

 

ToddChitt_0-1692190456308.jpeg

 

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.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.