The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now
I know how to disassemble a pbix file by changing the extension to .zip and then oening it. If I then change the extension back to .pbix I can then open it in Power BI. However, I would like to modify the Layout file that is exposed when you disassemble the pbix. But when I do that and change the extension of the .zip to .pbix, I get a corrupted file message when I try to open in Power BI. This happens no matter how small and inocuous the change is.
Is there any way to do this without getting the corrupted file message?
Solved! Go to Solution.
I was struggling with this issue recently, and my solution is the following:
- Change the extension from ".pbix" to ".zip"
- Do not unzip the ".zip" file during this process
- Extract the "Layout" file from the "Report" folder in the ".zip" file
- Open the "Layout" file with Notepad++. (VERY IMPORTANT)
- Make your modifications in the Layout file
- Substitute the old "Layout" file with the new one
- Delete "SecurityBindings" file in the ".zip" file
- In the [Contents_type].xml delete the following text:
"<Override PartName="/SecurityBindings" ContentType="" />"
- Change the extension from ".zip to ".pbix"
- The file will open without breaks
Hope it helps!
User | Count |
---|---|
159 | |
109 | |
96 | |
84 | |
75 |
User | Count |
---|---|
157 | |
137 | |
131 | |
81 | |
61 |