Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Import Custom Theme Error

I am trying to import a custom theme into my Power BI report, but I keep getting an error message that reads, "There was a problem importing your theme file. Please try again or choose another file." I can not find an error in my .json file. 

 

{"name": "Example",
"dataColors": ["#367c2b","#ffde00","#6a5b38","#ffb838","#676c73","#a3ae58","#bdb596","#la59le"],
"background":"#ffffff",
"foreground":"#f2f2f2",
"tableAccent":"#5bd078"}

  • Hi Anonymous ,

    Try this code.

     

    {"name": "Example",
    "dataColors": ["#367c2b","#ffde00","#6a5b38","#ffb838","#676c73","#a3ae58","#bdb596","#1a591e"],
    "background":"#ffffff",
    "foreground":"#f2f2f2",
    "tableAccent":"#5bd078"}

     

    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.

     

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    In your last color you have L's instead of 1's

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

    Hi Anonymous ,

    Try this code.

     

    {"name": "Example",
    "dataColors": ["#367c2b","#ffde00","#6a5b38","#ffb838","#676c73","#a3ae58","#bdb596","#1a591e"],
    "background":"#ffffff",
    "foreground":"#f2f2f2",
    "tableAccent":"#5bd078"}

     

    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.