Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint Online - list view threshold

$
0
0

Hello, guys,

I am trying to create new document set or folder in SharePoint online library. In the library there are 20,000 records. When i try to add new docoument set or folder i am getting the following message:

"The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator."

With following code:

            ListItemCreationInformation info = new    ListItemCreationInformation();
            info.UnderlyingObjectType = FileSystemObjectType.Folder;
            info.LeafName = folderName.Trim();
            ListItem newItem = documentLibrary.AddItem(info);
            newItem["Title"] = folderName;
            newItem.Update();
            web.Context.ExecuteQuery();
What is super strange is that the folder is actualy created. Is there any other way to create new item in SharePoint Online list without getting this exception?

Thank you in advance!

Jordan


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>