Sharepoint Migration Tool Error 0x01710004

%3CLINGO-SUB%20id%3D%22lingo-sub-1630511%22%20slang%3D%22en-US%22%3ESharepoint%20Migration%20Tool%20Error%200x01710004%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1630511%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20migrate%20on-premises%20sharepoint%20Server%202010%20to%20Sharepoint%20365%2C%20but%20the%20migration%20always%20terminate%20with%20error%26nbsp%3B0x01710004.%3C%2FP%3E%3CP%3EThe%20document%20analysis%20end%20without%20error%2C%20but%20the%20migration%20not.%20Looking%20at%20the%20log%20file%20I%20found%20this%20recourring%20error%20for%20each%20document%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETimeStamp%3A09%2F03%2F2020%2007%3A16%3A36%20Package%23%3A%5B0%5D%20EventType%3A%5BJOBERROR%5D%20PackageID%3A%5B2c56807f-6b08-4c8b-9c39-8576238ea2a4%5D%20JobID%3A%5B192d7662-d60a-450c-b21a-b6d9afa220e6%5D%20FilesCreated%3A0%2F2%3CBR%20%2F%3EEvent%3AJobError%3CBR%20%2F%3EJobId%3A192d7662-d60a-450c-b21a-b6d9afa220e6%3CBR%20%2F%3ETime%3A09%2F03%2F2020%2007%3A16%3A36.803%3CBR%20%2F%3ETotalRetryCount%3A0%3CBR%20%2F%3EMigrationType%3ANone%3CBR%20%2F%3EMigrationDirection%3AImport%3CBR%20%2F%3EObjectType%3AListItem%3CBR%20%2F%3EUrl%3Axxxxxxxxxx%2Fxxxxxxxxxx%2Fxxxxxxxxxxxx.xlsx%3CBR%20%2F%3EId%3A07c1aedb-01c5-4df4-958a-237c9f785224%3CBR%20%2F%3ESourceListItemIntId%3A1%3CBR%20%2F%3ETargetListItemIntId%3A1%3CBR%20%2F%3EErrorCode%3A-2146232832%3CBR%20%2F%3EErrorType%3AMicrosoft.SharePoint.SPException%3CBR%20%2F%3EMessage%3AItem%20does%20not%20exist.%20It%20may%20have%20been%20deleted%20by%20another%20user.%20CallStack%20--%20at%20Microsoft.SharePoint.SPListItem.EnsureItemIsValid()%3CBR%20%2F%3Eat%20Microsoft.SharePoint.SPListItem.GetValue(SPField%20fld%2C%20Int32%20columnNumber%2C%20Boolean%20bRaw%2C%20Boolean%20bThrowException)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.SPListItem.get_FileSystemObjectType()%3CBR%20%2F%3Eat%20Microsoft.SharePoint.SPListItem.get_File()%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.ListItemSerializer.SetObjectData(Object%20obj%2C%20SerializationInfo%20info%2C%20StreamingContext%20context%2C%20ISurrogateSelector%20selector)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object%20obj%2C%20SerializationInfo%20objectData%2C%20ISerializationSurrogate%20surrogate%2C%20ISurrogateSelector%20selector)%3CBR%20%2F%3ECorrelationId%3A70a7cc01-fbcf-4c67-a2ee-c0ba8a545954%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20can%20I%20do%20to%20solve%20the%20issue%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1630511%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Migration%20Tool%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1632328%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20Migration%20Tool%20Error%200x01710004%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1632328%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F779921%22%20target%3D%22_blank%22%3E%40peofrat1300%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20tool%20thinks%20it%20is%20being%20asked%20to%20move%20something%20that's%20no%20longer%20present.%26nbsp%3B%20An%20off%20the%20top%20of%20my%20head%20suggestion%20is%20to%20check%20the%20site%20recycle%20bin%20to%20see%20if%20any%20of%20the%20files%20you're%20trying%20to%20move%20are%20there%20and%20restore%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20also%20advise%20what%20migration%20tool%20you're%20using%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1635225%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20Migration%20Tool%20Error%200x01710004%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1635225%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F11625%22%20target%3D%22_blank%22%3E%40Steven%20Andrews%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepointmigration%2Fintroducing-the-sharepoint-migration-tool%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ESPMT%3C%2FA%3E%20to%20migrate%2C%20by%20now%20for%201%20document%20library%20that%20contains%20only%202%20documents.%20The%20recycle%20bin%20in%20the%20source%20is%20completely%20empty%2C%20the%20strange%20thing%20is%20that%20the%20analysis%20terminate%20correctly%2C%20so%20the%20tool%20can%20find%20the%20documents%20during%20that%20step.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F771000%22%20target%3D%22_blank%22%3E%40aliraza3008%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20try%20to%20reduce%20the%20path%20size%20and%20let%20you%20know%20what%20happens.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I'm trying to migrate on-premises sharepoint Server 2010 to Sharepoint 365, but the migration always terminate with error 0x01710004.

The document analysis end without error, but the migration not. Looking at the log file I found this recourring error for each document:

 

TimeStamp:09/03/2020 07:16:36 Package#:[0] EventType:[JOBERROR] PackageID:[2c56807f-6b08-4c8b-9c39-8576238ea2a4] JobID:[192d7662-d60a-450c-b21a-b6d9afa220e6] FilesCreated:0/2
Event:JobError
JobId:192d7662-d60a-450c-b21a-b6d9afa220e6
Time:09/03/2020 07:16:36.803
TotalRetryCount:0
MigrationType:None
MigrationDirection:Import
ObjectType:ListItem
Url:xxxxxxxxxx/xxxxxxxxxx/xxxxxxxxxxxx.xlsx
Id:07c1aedb-01c5-4df4-958a-237c9f785224
SourceListItemIntId:1
TargetListItemIntId:1
ErrorCode:-2146232832
ErrorType:Microsoft.SharePoint.SPException
Message:Item does not exist. It may have been deleted by another user. CallStack -- at Microsoft.SharePoint.SPListItem.EnsureItemIsValid()
at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw, Boolean bThrowException)
at Microsoft.SharePoint.SPListItem.get_FileSystemObjectType()
at Microsoft.SharePoint.SPListItem.get_File()
at Microsoft.SharePoint.Deployment.ListItemSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object obj, SerializationInfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector)
CorrelationId:70a7cc01-fbcf-4c67-a2ee-c0ba8a545954

 

What can I do to solve the issue?

Thanks

5 Replies
Highlighted

@peofrat1300 

The tool thinks it is being asked to move something that's no longer present.  An off the top of my head suggestion is to check the site recycle bin to see if any of the files you're trying to move are there and restore them.

 

Can you also advise what migration tool you're using?

Highlighted

@peofrat1300 

Can you verify the length for path of documents that you're trying to migrate. SharePoint Online supports URL length of 400 characters. You can give a try to migrate document from a shorten path and see if error appears. 

Highlighted

@Steven Andrews 

I'm using SPMT to migrate, by now for 1 document library that contains only 2 documents. The recycle bin in the source is completely empty, the strange thing is that the analysis terminate correctly, so the tool can find the documents during that step.

 

@aliraza3008 

I can try to reduce the path size and let you know what happens.

 

Thanks

Highlighted

@peofrat1300 

Please also check if there are any special characters are part of the URL or document name. 

Highlighted

@aliraza3008

 

I've tried some other migrations and verified the source path (70 characters) and the destination path (90 characters).

The 2 files has a naming structure like this: "xxxxxxxx - xxxxxxxxxxxxxxx - xxxxx.xls", I've created a new file "test.txt" in the same folder and this file has been correctly migrated.

I've tried to rename 1 of the 2 xls file as "xxxxxxxxxxxxxxx.xls" but migrations terminate with error again ... looking at the log file I've found a different exception for the renamed file:

 

Message:File cannot be deleted will try to append the file instead. CallStack -- InnerException -- Server relative urls must start with SPWeb.ServerRelativeUrl
CorrelationId:bdf7b5a1-f5c6-4b4e-b24f-ab0ce42c69b3

 

Message:Server relative urls must start with SPWeb.ServerRelativeUrl CallStack -- at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(SPResourcePath url, Boolean includeQueryString, Boolean canonicalizeUrl)
at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileWithGuid(Stream spstm, SPLoggerObject loggerObject, SPWeb web, Guid fileId, SPResourcePath filePath, Int32 authorId, String authorLoginName, Int32 editorId, String editorLoginName, String checkinComment, DateTime timeCreated, DateTime timeLastModified, MetaInfoHandler metaInfo, Int32 length, Int32 iVersion, Boolean isFirstVersion, SPImportSettings settings, Int32 listItemId, String listInternalName, Boolean hasNoExecuteFlag, ImportObjectManager objectManager)
at Microsoft.SharePoint.Deployment.FileSerializer.UploadFileData(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid fileId, SPResourcePath filePath, FileInfo fileInfo, String fileValue, Int32 authorId, String authorLoginName, Int32 editorId, String editorLoginName, String checkinComment, DateTime timeCreated, DateTime timeLastModified, MetaInfoHandler metaInfo, Int32 iVersion, Boolean isFirstVersion, Int32 listItemId, String listInternalName, Boolean hasNoExecuteFlag, ImportObjectManager objectManager, SerializationInfoHelper infoHelper)
at Microsoft.SharePoint.Deployment.FileSerializer.UploadFileData(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath filePath, Boolean fileExistsInDb, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperListitem, MetaInfoHandler metaInfo, StreamingContext context)
at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFile(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& filePath, Boolean fileExistsInDb, Boolean isFirstVersion, 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, 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, StreamingContext context, ISurrogateSelector selector, LoggerStatistics stats)
at Microsoft.SharePoint.Deployment.ListItemSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
CorrelationId:bdf7b5a1-f5c6-4b4e-b24f-ab0ce42c69b3