This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Issue migrating a record to a record library

Hi

 

 When I migrate reords to a record library (same schema and content type used) to site 'A' ,  I get an error (described below) but running the same migration job to  a site 'B' it runs without any issues.

 

 I get the following error when I run the job with the migration target (Site A)

 

Error adding document 'XYZ.docx' ---> Error saving file to SharePoint

-----------------------
Error details / stack traces:

     System.Exception: Error adding document 'XYZ.docx' ---> System.Exception: Error saving file to SharePoint ---> Microsoft.SharePoint.Client.ClientRequestException: The file already exists.
   at Microsoft.SharePoint.Client.File.SaveBinary(ClientContext context, String serverRelativeUrl, Stream stream, String etag, Boolean overwriteIfExists, SaveBinaryCheckMode checkMode)
   at Quest.NSP.SharePoint.ClientSPFileCollection.<>c__DisplayClass2.<AddFile>b__0()
   at Quest.NSP.SharePoint.ClientSPExtension.ExecuteDirect(ClientRuntimeContext context, Action executeMethod)
   at Quest.NSP.SharePoint.ClientSPFileCollection.AddFile(String name, Stream stream)
   --- End of inner exception stack trace ---
   at Quest.NSP.SharePoint.ClientSPFileCollection.AddFile(String name, Stream stream)
   at Quest.NSP.SharePoint.ClientSPFileCollection.Add(String name, Stream stream, ISPUser createdBy, ISPUser modifiedBy, DateTime timeCreated, DateTime timeLastModified)
   at Quest.NSP.SharePoint.SharePointDocLibraryRecordWriter.PrepareDocumentLibraryItems(SharePointItems items, ISPListItemCollection spDuplicateItems)
   --- End of inner exception stack trace ---
Stack trace:      at Quest.NSP.SharePoint.SharePointRecordsWriter.WriteRecords(IDataReader reader, List`1 migratedItemList, Int32 numberItems)
(client workingSet = 225M)

  • Thanks for posting in the Migrator for Notes to SharePoint community forum. I understand you are experiencing issues migrating to a particular site. In reviewing the error snippet from your log file, I see the following:

    The file already exists.

    Have you already migrated data to this site in the past?

    In MNSP Designer, you can try going to Tools | Options | General and check the option for "Allow Deletion of SharePoint records". Then, during the migration, on the SharePoint tab you can check the box for "Delete current SharePoint List items" which will effectively remove all items from the list in SharePoint and re-migrate the data from scratch.


    Does this resolve the issue?