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
Nacujo
Frequent Visitor

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"
}

1 ACCEPTED SOLUTION
v-caliao-msft
Employee
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

View solution in original post

3 REPLIES 3
jjasper
Helper II
Helper II

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"
}

v-caliao-msft
Employee
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

Thank you! That fixed it!!!

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.