Provide the 'allowthrottleablequeries' preference to allow this

此生再无相见时 提交于 2019-12-13 15:24:17

问题


I have developed an API using Microsoft Graph API. I am encountering below issue.

URL that I am calling :

/v1.0/sites/root/lists/cb32cc85-5351-423d-b2ec-bb418c1d9c64/items?
$filter=fields/Created gt '2018-1-1T00:00:00'
&expand=fields
&$orderby=createdDateTime
&$top=10

Error returned from the API :

Field 'Created' cannot be referenced in filter or orderby as it is not indexed. Provide the 'allowthrottleablequeries' preference to allow this, but be warned that such queries may fail on large lists.

How to enable allowthrottleablequeries as it says and how should I achieve this?


回答1:


I'm afraid this isn't a very clear or useful error message. As far as I know, there isn't actually a way to enable allowthrottleablequeries.

This happens when a SharePoint list grows too large to handle filtering or sorting non-indexed columns. The fix is to add an index to the created column in your List Settings. You can find instructions on how to accomplish this in Add an index to a SharePoint column.



来源:https://stackoverflow.com/questions/48886356/provide-the-allowthrottleablequeries-preference-to-allow-this

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!