2

I have a list which has exceeded the sp2010 list view threshold of 5000 items. Despite filtering the default view (or creating a new filtered view) with less than 5000 items, SOAP and REST queries still result in errors.

Is there any way to use SOAP or REST to interface with large lists? The queries I make will never return more than about 500 items.

2 Answers 2

1

You will need to disable resource throttling on a particular list. You can use following powershell script to do that:

$web = Get-SPWeb -Identity http://intranet.contoso.com/sites/contracts
$web.AllowUnsafeUpdates = $True
$list = $web.Lists["Projects"]
$list.EnableThrottling = $False
$list.Update()
$web.AllowUnsafeUpdates = $False
$web.Update()
$web.Dispose()
2
  • Thanks for the reply, it turns out the problem can also be solved on the front end.
    – Sinetheta
    Jan 2, 2013 at 20:10
  • This worked great for a library we had containing over 38,000 items
    – user25191
    Apr 16, 2014 at 15:07
1

It turns out that if you index a column, then filter against the indexed column, as long as what passes that filter is under the item limit the call will work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.