locked
Error importing .cmp file using stsadm -o import RRS feed

  • Question

  • I get following error while importing .cmp using stsadm. The file need to override the existing document if any but is unable to do so. I tried force overwrite using updateversions 2 option. But it gives the same error. Any ideas? Below is the error from the log: Progress: Importing ListItem /_catalogs/masterpage?id=20. Error: The specified name is already in use.A document cannot have the same name as another document or folder in this document library or folder. Click your browser's Back button, and type a new name. at Microsoft.SharePoint.Library.SPRequest.CreateOrUpdateFileAndItem(String bstrUrl, String bstrWebRelativeUrl, Guid& docId, Object varDoc, Int32 docLength, Int32 exists, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Int32 iVersion, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String checkInComment, Int32 docLibRowID, String bstrListName, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage) at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileWithGuid(SPFileStream spstm, SPWeb web, Guid fileId, String fileUrl, SPUser author, SPUser editor, String checkinComment, DateTime timeCreated, DateTime timeLastModified, MetaInfoHandler metaInfo, FileInfo fileInfo, Int32 iVersion, Boolean isFirstVersion, SPImportSettings settings, Int32 listItemId, String listInternalName)
    Friday, July 29, 2011 9:57 AM

All replies

  • Hi Anurd,

    From the error message it looks like while import is encountering a duplicate file it throwing out the error.

    Can you try runing import without specific updateversion parameter.

    Friday, July 29, 2011 7:34 PM