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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nmartinez
Frequent Visitor

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!





nmartinez
Frequent Visitor

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!





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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.