Failure decompressing data from a cabinet file

In a previous post, Increase maximum size of List Template, I explained how to increase the maximum file size of a list / site template in SharePoint.  However, even after doing that you may encounter another error when trying to save the template: 'Failure decompressing data from a cabinet file'.

image

The resolution to this is to use stsadm to do the export (and subsequent import), and specify the attribute -nofilecompression.

 stsadm -o export -url https://yoururl/youroldsite -includeusersecurity -nofilecompression -filename C:\yourdirectory 

stsadm -o import -url https://yoururl/yournewsite -includeusersecurity -nofilecompression -filename C:\yourdirectory 

 

- Dan