Error to migrate from SharePoint 2013 to SharePoint Online ErrorCode:-2147024809

Sergio Cano 26 Reputation points
2021-11-20T14:38:44.807+00:00

I am migrating a SharePoint Document library from SharePoint 2013 to SharePoint Online, I am getting multiple errors in the migration task folder with the following message: Message:An item with the same key has already been added. The folder contains 6500 pdf documents and any of them is moved to the sharepoint online. The complete error is the following:

There is a error for each file in the source.

TimeStamp:11/20/2021 2:57:52 AM Package#:[0] EventType:[JOBERROR] PackageID:[cfed0f3e-6c0d-4f7f-ada2-2eaa75db6d0f] JobID:[8591b3c2-5902-43f7-b2d0-7a2760db1b11] FilesCreated:0/200
Event:JobError
JobId:8591b3c2-5902-43f7-b2d0-7a2760db1b11
Time:11/20/2021 02:57:52.028
TotalRetryCount:0
MigrationType:None
MigrationDirection:Import
ObjectType:ListItem
Url:Encounter2013/2013/August/CBO_Encounter_MCBAS1_20130801_10_00_33.pdf
Id:e7fc1277-f274-44bb-84ae-10ff0d6164f1
SourceListItemIntId:33319
TargetListItemIntId:33319
ErrorCode:-2147024809
ErrorType:System.ArgumentException
Message:An item with the same key has already been added. CallStack -- at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at Microsoft.SharePoint.Deployment.FileSerializer.GetMetaInfo(SerializationInfoHelper infoHelper) at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFile(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& filePath, Boolean fileExistsInDb, Boolean isFirstVersion, Nullable1 isLastVersion, Boolean hasWebParts, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperListitem, StreamingContext context)
at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileAndAssocData(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& filePath, Boolean fileExistsInDb, Nullable`1 isLastVersion, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperListitem, StreamingContext context, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.ListItemSerializer.AddOrUpdateDoclibItem(SerializationInfoHelper infoHelper, SPListItem& listItem, SPLoggerObject loggerObject, SPWeb web, Guid newId, SPResourcePath& listItemServerRelativePath, Boolean bIsPublish, Boolean exists, Boolean isLastVersion, StreamingContext context, ISurrogateSelector selector, LoggerStatistics stats)
at Microsoft.SharePoint.Deployment.ListItemSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
CorrelationId:42d704a0-e064-1000-2658-7cc483a772c3

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,131 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,751 Reputation points
    2021-11-23T07:33:37.167+00:00

    Hi @Sergio Cano ,

    Per my test, I am not able to reproduce your issue. Is this issue with the only folder/library? Try to test in other library to compare the result.

    And please remember to perform migration tasks with the official guidance:
    Overview of the SharePoint Migration Tool (SPMT)


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments