none
stsadm import error[FatalError: Failed to read package file.]

    Question

  • [1/27/2012 6:52:38 PM] Start Time: 1/27/2012 6:52:38 PM.
    [1/27/2012 6:52:38 PM] Progress: Initializing Import.
    [1/27/2012 7:00:03 PM] Error: Failure writing to target file
    [1/27/2012 7:00:04 PM] Debug:    at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
       at Microsoft.SharePoint.Library.SPRequest.ExtractFilesFromCabinet(String bstrTempDirectory, String bstrCabFileLocation)
       at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
       at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
       at Microsoft.SharePoint.Deployment.ImportDataFileManager.Uncompress(SPRequest request)
    [1/27/2012 7:00:04 PM] FatalError: Failed to read package file.
    *** Inner exception:
    Failure writing to target file
    [1/27/2012 7:00:04 PM] Debug:    at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
       at Microsoft.SharePoint.Library.SPRequest.ExtractFilesFromCabinet(String bstrTempDirectory, String bstrCabFileLocation)
       at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
       at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
       at Microsoft.SharePoint.Deployment.ImportDataFileManager.Uncompress(SPRequest request)
    [1/27/2012 7:00:29 PM] Progress: Import did not complete.
    [1/27/2012 7:00:29 PM] Finish Time: 1/27/2012 7:00:29 PM.
    [1/27/2012 7:00:29 PM] Duration: 00:07:51
    [1/27/2012 7:00:29 PM] Finished with 0 warnings.
    [1/27/2012 7:00:29 PM] Finished with 2 errors.

    Hi ,

    I have exported a site http://teamsite in share point 2007 set up and try to import in 2010 site http://mysite using stsadm.The command details is given below.

    stsadm -o export -url http://teamsite -filename c:\backup\team.cab -includeusersecurity  . it has created  277 cab file . then i have copy these file to 2010 sytem and given the import command.

    stsadm-import -url http://mysite -filename d:\backup\team.cab and found the above code error. Please send the reply to my email  jitendriya.jamadar@hcl.com

    • Moved by Mike Walsh FIN Friday, January 27, 2012 9:42 AM sp 2010 q (From:SharePoint - Setup, Upgrade, Administration and Operation (pre-SharePoint 2010))
    Friday, January 27, 2012 8:20 AM

Answers

  • Hi,

     

    Glad to receive your reply.

     

    Based on my research,  out of space on a drive will result in this error. Please check if there is enough space on the drive.

     

    Furthermore, change the user TEMP and TMP to another drive with space, then test again.

     

    Thanks,

    Rock Wang


    Rock Wang TechNet Community Support
    • Edited by Rock Wang– MSFT Monday, February 06, 2012 8:25 AM
    • Marked as answer by Seven M Wednesday, February 08, 2012 1:48 AM
    Monday, February 06, 2012 8:25 AM

All replies