The following error is thrown when migrating a list with 5000+ items and none of the items are copied.
An error occurred during the operation of a service method: Object reference not set to an instance of an object.
Stack Trace:
at Metalogix.SharePoint.Adapters.CSOM2013.CSOMAdapter.GetListItems(List list, String query, String viewFields, Nullable`1 datesInUtc, Nullable`1 expandReccurence, Folder folder, String parentFolderPath, Nullable`1 itemIdQuery, Nullable`1 meetingInstanceId, Boolean& orderingViolated, Boolean includeHasUniqueRoles)
at Metalogix.SharePoint.Adapters.CSOM2013.CSOMAdapter.GetListItemCollections(List list, String query, Boolean bRecursive, String sFields, String sParentFolder, Boolean& bOrderingViolated, Boolean includeHasUniqueRoles)
at Metalogix.SharePoint.Adapters.CSOM2013.CSOMAdapter.GetListItemsByQuery(String listID, String fields, String query, String listSettings, GetListItemOptions getOptions)
at SyncInvokeGetListItemsByQuery(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
The root cause of this error is the SharePoint Resource Throttling setting. By default, the list view threshold in SharePoint 2010 and above is set to 5000 items.
The Content Matrix application triggers the throttling when attempting to fetch all the list items during the copy operation.
Stack Trace:
at Metalogix.SharePoint.Adapters.CSOM2013.CSOMAdapter.GetListItems(List list, String query, String viewFields, Nullable`1 datesInUtc, Nullable`1 expandReccurence, Folder folder, String parentFolderPath, Nullable`1 itemIdQuery, Nullable`1 meetingInstanceId, Boolean& orderingViolated, Boolean includeHasUniqueRoles)
There are various ways to get around the issue depending on what the SharePoint environment is.
SharePoint On-Premise and SharePoint Online (Office 365)
<XmlableEntry> <Key>ListNamesToIgnoreForAzure</Key> <Value>FormServerTemplates|SiteAssets</Value>
<Value>FormServerTemplates|SiteAssets|Shared Documents</Value>
SharePoint On-Premise
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center