Forum Discussion
Style preset not found error
- 9 months ago
Hi knut12212
Based on the above error ,Since this issue occurs after saving the current theme and trying to re-import it, the problem is most likely due to an invalid or corrupted theme JSON file.
Here are some additional troubleshooting steps:
- Make sure the theme file is valid JSON (no missing commas, brackets, or quotation marks).
- Use a JSON validator or a code editor with JSON linting to verify the structure.
- Even a small syntax error can cause the import to fail.
- Remove complex or auto-generated sections such as:
- visualStyles
- Custom visual blocks
- Preview-feature related properties
- If the report contains custom visuals, try removing them temporarily and then export the theme again.
Some theme properties depend on the Power BI Desktop version.
Make sure your Power BI Desktop version supports the theme features used.Hope this helps !!
Thank You.
Hi knut12212
The error occurs because the report was created in an older Power BI version, and the new version no longer supports or recognizes some of the old visual style presets.
- When you select Style → Default in the Format your visual panel, Power BI simply resets the visual’s appearance back to the standard look for that visual type. Your data, DAX formulas, measures, and visuals will not be affected or broken only the appearance (like colors, borders, or shading) might look slightly different.
- If you want to keep your current theme for future use, you can go to View → Themes → Customize current theme → Save current theme. as suggested earlier by danextian , That might matches your theme for the latest power BI version.
Hope this helps !!
Thank You.
If I save the current theme and try to insert it again, I keep getting the following error.
- v-aatheeque9 months agoCommunity Support
Hi knut12212
Based on the above error ,Since this issue occurs after saving the current theme and trying to re-import it, the problem is most likely due to an invalid or corrupted theme JSON file.
Here are some additional troubleshooting steps:
- Make sure the theme file is valid JSON (no missing commas, brackets, or quotation marks).
- Use a JSON validator or a code editor with JSON linting to verify the structure.
- Even a small syntax error can cause the import to fail.
- Remove complex or auto-generated sections such as:
- visualStyles
- Custom visual blocks
- Preview-feature related properties
- If the report contains custom visuals, try removing them temporarily and then export the theme again.
Some theme properties depend on the Power BI Desktop version.
Make sure your Power BI Desktop version supports the theme features used.Hope this helps !!
Thank You.
- v-aatheeque8 months agoCommunity Support
Hi knut12212
Just checking in to see if you had a chance to try the troubleshooting steps shared earlier.
The issue is usually caused by an invalid or corrupted JSON structure, so validating the theme file or removing unsupported/complex sections should help resolve the import error.