Forum Discussion
Required properties are missing from object
Hi Simonn97_PBI - Here , error indicates that your Power BI file (PBIX) contains corrupted metadata, specifically in the JSON configuration for one of the visuals. The issue is related to a missing required property (name) in the visual configuration. Since the file cannot be opened in Power BI Desktop, you'll need to fix it manually by extracting and repairing the file.
Backup Your File
Make a copy of the corrupted .pbix file to ensure you don't lose any data during the repair process.
Rename the File Extension
Change the file extension from .pbix to .zip. Power BI files are internally structured like ZIP archives.
Extract the File
Extract the ZIP file using a tool like WinRAR, 7-Zip, or a similar application.
Locate the Problematic File
Inside the extracted folder, navigate to Report/Layout (or similar, depending on the version of Power BI). This file contains the JSON configuration for the report visuals.
Edit the JSON File
Open the Layout file (you might need a text editor like Notepad++ or VS Code).
Navigate to line 342, position 7, as indicated in the error message.
The issue seems to be with the filterConfig.filters[2]. The correct JSON structure for this filter should include a name property. Add the missing name field to the object.
Avoid editing PBIX files directly when Power BI Desktop is open.
Regularly save your work and maintain backups.
Publish reports to Power BI Service as a backup method.
Thanks for the response. Generally, I've carried out most of the steps you described, but I'm not sure where to add the 'Name' data in the .json file. I tried different places, but when I save the file again, it turns out to be corrupted