File couldn't be saved as a compressed file
Posted by Luis Sousa on 01-Jun-22 08:17 AM

The model cannot be saved as a compressed file *.dsb. 

Possible cause:

While adding custom textures to the model these need to be copied to the program folder Program Files (x86)\DesignBuilder but the process fails due to user permissions to write at this system folder.


To fix the issue you will need to:

1. Navigate to the folder C:\Program Files (x86)\DesignBuilder\FHKDSTERWQE456701\ 

2. At this location, create a copy of one of the available files, eg. jgcijojhphkmleficcbb
For now, keep the default name of the copied file jgcijojhphkmleficcbb-copy

3. The next step, you will need to find the custom texture name that is assigned to your model and it is causing this issue.
For this open DesignBuilder session log (menu File> Folders> Diagnostic files folder) 

4. In the Diagnostics folder, sort the files by date and open with a text editor (eg. NOTEPAD) the most recent file Diagnostics_xx_01_2020_xx_xx_xx.log or the one from a session where you have seen the saving error.

5. Search the words "zip exception" or scroll down the diagnostics file until you find the line with the error:

DBZip: Zip Exception: System.IO.FileNotFoundException: Could not find file 'C:\Program Files (x86)\DesignBuilder\FHKDSTERWQE456701\ndjigogdbjdlijdibopieb'

The custom texture name, in this case, is ndjigogdbjdlijdibopieb

6. C
opy the filename ndjigogdbjdlijdibopieb and rename the copy of the texture file you created in step 2. The filename looks like a random series of letters but it is important that these names match to fix this issue

7. After the new texture file is available at C:\Program Files (x86)\DesignBuilder\FHKDSTERWQE456701\ , restart DesignBuilder, open the project and save the model with the dsb format.

(Last update 01.06.2022)