Ashley
Blog - Robert Bogue [MVP]
Rob's Notebook
SharePoint Calendar
Thor Projects LLC - Welcome : Blog - Robert Bogue [MVP]

STSADM strikes again, Failed to extract the cab file in the solution...

Posted by Robert L. Bogue on Monday, 21 Jan 2008 09:28 | 7 Comments | Professional

Having more fun with STSADM ... I tried doing:

STSADM -o addsolution -filename XmlWebParts.wsp

and I received back this message:

Failed to extract the cab file in the solution.

When I looked ... I had accidentally duplicated a line in the DDF file so a file was being included in the cab file twice with the same name -- apparently SharePoint doesn't like that.

 

Comments

Tuesday, 9 Dec 2008 09:58 by Michael Blumenthal
Unmatched quotes will also cause this. For example in your ddf file, if you have: "SourceFile" "Destfile" but you drop the quote before Destfile, that will do it too.
Sunday, 14 Dec 2008 06:43 by Tore Kristiansen
Thanks for this :)
Saturday, 18 Apr 2009 12:45 by Mano Mangaldas
Thanks :)
Tuesday, 2 Jun 2009 04:42 by Dave Joye
This can also occure if the filename in the cab has a special char. To repeat this all you need to do is copy your feature file and past it in the same location resulting in a filename "Copy of FEATURE.xml". Repeate this process of copyng the original "Feature.xml" file to the same feature folder resulting in a filename "Copy (2) of FEATURE.xml". Now edit your ddf. Build and attempt to add the solution, voila. No its a different error thrown than the one if you have a special char in the manifest file such as an "&" in the description.
Wednesday, 24 Jun 2009 09:03 by Obfuskater
Another reason for this error can be the inclusion of forbidden characters in any files you try to provision through the Module element. I was amazed to discover the humble bracket isn't allowed ().
Friday, 26 Jun 2009 06:43 by Eugene Rosenfeld [MOSS MVP]
Thanks for the post. I had the same error. It was coming from "(" and ")" characters in some file names in the DDF. Renamed the files and the error went away.
Friday, 10 Jul 2009 08:43 by Matthieu
Thanks for posting. In my case, my error was also coming from two dots in a file name. I had to rename "btnImage..png" to "btnImage.png".

Leave your own comment

Name

Url

Email

Comments