Forum Discussion

Nacujo's avatar
Nacujo
Frequent Visitor
8 years ago
Solved

Error Importing Theme File in Power BI

I am trying to import a custom these and i am receiving the following error from Power BI: "There was a problem importing your theme file. Please try again or choose another file." I can't figure out why I am receiving this error. Other these seem to work but my custom one doesnt and it appears to be set up correctly. I have tried using the power bi color theme generator AND notepad++ and get the same message either way. Thank you for your help! File below:

 

{
"name": "HFI Theme",
"dataColors": ["#ffce51", "#f7931d", "#67cdf2", "#b0d355", "#652c90", "#492683", "#00471af", "#6ba539"],
"background":"#FFFFFF",
"foreground": "#00471af",
"tableAccent": "#6ba539"
}

  • Nacujo,

     

    You have 7 characters in one of your colors.
    {
    "name": "HFI Theme",
    "dataColors": ["#ffce51", "#f7931d", "#67cdf2", "#b0d355", "#652c90", "#492683", "#00471af", "#6ba539"],
    "background":"#FFFFFF",
    "foreground": "#00471af",
    "tableAccent": "#6ba539"
    }

     

    Please change it and then try it again.

     

    Regards,

    Charlie Liao

3 Replies

  • v-caliao-msft's avatar
    v-caliao-msft
    Microsoft Employee

    Nacujo,

     

    You have 7 characters in one of your colors.
    {
    "name": "HFI Theme",
    "dataColors": ["#ffce51", "#f7931d", "#67cdf2", "#b0d355", "#652c90", "#492683", "#00471af", "#6ba539"],
    "background":"#FFFFFF",
    "foreground": "#00471af",
    "tableAccent": "#6ba539"
    }

     

    Please change it and then try it again.

     

    Regards,

    Charlie Liao

    • Nacujo's avatar
      Nacujo
      Frequent Visitor

      Thank you! That fixed it!!!

  • I am getting when importing this file into Power BI. Not sure where my error is.

     

    {
      "name": "Schlegel Villages",
     "dataColours": ["#899064", "#737B4C", "#FFFFFF", "#63513D", "#7F9C90", "#4F758B", "#AB5C57", "#B9975B", "#D2CE9E"],
     "background": "#D2CE9E",
     "foreground": "#7F9C90",
     "tableAccent": "#AB5C57"
    }