Using the manual approach, I have copied some 5100 list items from my SP 2010 site's splist into O 365 - SPO list. But the issue is that,i am unable to do any kind of operations because i am getting the error , list view threshold crossed 500 items , in my SPO list.am already having some 10 views created and i am unable to do any kind of operations because of this list view threshold.
whats the approach, i need to take now in order to further manipulate this list? i tried the belwo code to get the num of items in each view , but it throws error :
Message:
The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.
List RCAList = web.Lists.GetByTitle("testlist");
if (RCAList != null)
{
mClientContext.Load(RCAList);
mClientContext.ExecuteQuery();
Microsoft.SharePoint.Client.View allitemsview = RCAList.Views.GetByTitle("All Items");
mClientContext.Load(allitemsview);
mClientContext.ExecuteQuery();
CamlQuery query = new CamlQuery();
query.ViewXml = allitemsview.ViewQuery;
// Based on the query load items
try
{
items = RCAList.GetItems(query);
mClientContext.Load(items);
mClientContext.ExecuteQuery();
Console.Write(items.Count);
}
catch (Exception expinn)
{
MessageBox.Show("error thrown " + expinn.Message + "===" + expinn.StackTrace);
}
}