Rest API阈值限制错误 [英] Rest API threshold limit error

查看:95
本文介绍了Rest API阈值限制错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在同一个网络应用中的两个网站集中有两个列表,记录超过10k。我正在使用rest API调用来查询阈值限制时间内的项目。其中一人最近停止工作。其他一个仍然有效。


获取错误消息为"阈值限制超过"。 


以下查询在一个列表中失败但在另一个列表中工作两者都有10k记录和相同的网络应用程序:


https:// mywebapp / sitecol1 / _api / web / lists / GetByTitle('list1')/ items?$ top = 100



https:// mywebapp / sitecol2 / _api / web / lists / GetByTitle('list2')/ items?$ top = 100


我认为它可能是由于查找字段引用。


但即使我选择了字段,它仍然会抛出相同的错误。


https:// mywebapp / sitecol1 / _api / web / lists / GetByTitle('list1')/ items?$ top = 100& $ select = Title



任何想法?



解决方案


您对两个网站集的同意吗?


管理员列表视图阈值为20K,列表视图查找阈值默认为8.





最好的问候,



Hi,

I have Two lists in two site collection in same web app with more than 10k records. i was using rest API calls to query the items on threshold limit time. one of them stop working recently. other one still works.

Getting error message as "threshold limit exceed". 

below query failed in one list but working in another both have 10k records and in same web app:

https://mywebapp/sitecol1/_api/web/lists/GetByTitle('list1')/items?$top=100

https://mywebapp/sitecol2/_api/web/lists/GetByTitle('list2')/items?$top=100

I assume it is may be due to the lookup fields reference.

but even if i select fields, it is still throwing same error.

https://mywebapp/sitecol1/_api/web/lists/GetByTitle('list1')/items?$top=100&$select=Title

any ideas?

解决方案

Hi,

Are you same permission for both site collection?

As List View Threshold for Administrators is 20K and List View Lookup Threshold is 8 by default.


Best Regards,

Lee


这篇关于Rest API阈值限制错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆