- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
File corrupted after compressing back to pbix
Hi there,
I have tried unzip the pbix file. Without any change, I compress it back to zip file and rename to .pbix. The file is corrupted when I open. Any idea why? Is there anything I need to configure specifically during compressing?
Note:
1) I use 7-zip.
2) I noticed the file size after compressing is less than the original one.
cheers
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By do you need to unzip it? Just rename it to a zip file and access what you want without unzipping it. Then rename it back
* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had the same problem. I used 7zip to update the layout as doing from the report is time consuming.
What I had to do at the end was deleting the SecurityBindings with the 7zip itself. File opens without any error.
Another tip. If you need to change your connection then go ahead and delete the Connections file as well. When opening the report select the server and database and all working again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, how did you solved?
I tried the following steps as test whithout success:
- copied pbix file test.pbix to temp folder
- renamed the file adding .zip extension: test.pbix.zip
- opened with 7zip
- selected the file named "Connections"
- edited with 7zip command File->Edit with default editor
- renamed the SSAS server instance name (since it has been changed)
- Saved back ( 7zip itself asked me if I wanted to update zip file)
- Exit from 7zip
- Renamed back to original pbix file.
- Opened with PowerBi, but a message says that the file is corrupted.
Yes, I know that it is possible to modify the connection parameter within PBI, and the new connection was working
What I noticed is that - differently from the other files which has empy attributes -, for the modified file "Created", "Last Access", "Attribute" and "Characteristics" was filled with values (respectively: date:time, date:time, A, NTFS).
Now is there any protection mechanism or simply a propretary compression algorithm ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would ask what compression algorithm is used by PBIX files (rather than asking which Zip application is used to compress it) then search what Zip applications provide that compression algorithm.
I hightly suspect it might be Microsoft's properiety compression algorithm especially developed for BBIX files.
Having said that, it would be way-way useful to know how to compress the PBIX files back without corrupting them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The solution works. Except that I would like to make a change to the Layout file. When I make that change, no matter how small, and then put back the pbix suffix I get a corrupt file message when I try to open it in Power BI. Why? Is there any way around this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any idea how to edit layout file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By do you need to unzip it? Just rename it to a zip file and access what you want without unzipping it. Then rename it back
* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
EDIT: If you want to overwrite the same report in Power BI service, you'll need to retain the Report ID int he RemoteArtifacts section of the config. If you just copy the whole lot like I suggested below you will get a new report and new dataset created which probably isn't what you want.
can confirm that if you edit the archive directly in 7zip (i.e. don't unzip make changes and then recompress) it works.
To get a known-good connection string make a dummy report connected to your new data source and copy the entire contents of the 'Connections' file. Wasn't enough for me to simple change the SSAS instance name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Matt
I tried this way but unfortunately it doesn't work (at least with "pea zip" and "7zip").
Any change at the end PowerBI says that the file is corrupted. Can you telle me please wich compressing application are you using?
The reason why it is necessary to access to unzipped source is that this way seems the only solution for aligning the report to a renamed dimension widely used inside report itself, connected to SSAS cube,.
As far as I know there are not tools inside BPI Desktop to make such operation on visuals, and sincerily I don't understand why such a basic development functionality has not been yet implemented. A change in dimension naming convention inside an Enterprise cannot be excluded and without any tool for a bulk renaming, it could become a nightmare.
Some functionality like the "Advanced Editor" (not available by the way on SSAS connections), but extended to whole report would be very useful.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I have a corrupted message even if we rename the file to .zip !

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
Anonymous
| 08-13-2020 08:14 AM | ||
02-06-2025 12:03 AM | |||
06-23-2024 03:55 PM | |||
07-16-2024 10:39 PM | |||
08-13-2020 05:51 AM |
User | Count |
---|---|
140 | |
110 | |
81 | |
60 | |
46 |