Forum Discussion
Web.Contents failed to get contents
I have got this error?
Data source error: <pii>Web.Contents failed to get contents from 'https://xxxxxxx.sharepoint.com/sites/xxxx/_api/web/getfilebyserverrelativeurl('/xxx/xxx/Shared%20Documents/xxx/project/Production/filename.xlsm')/$value' (429): </pii>. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action.
Everytime, I run this query - I am getting some or the other error.
So one i want to know how to solve this error.
But i also want the query to refresh and maybe ignore this error and move on. I have too many files and somewhere ot the other there might be an error like some files might be open.
How do i plan to ensure that the query refreshes - even if there are errors.
1 Reply
- AnonymousNot applicable
Hi ShilpiKapoor ,
According to the error code, this should be an excessive number of calls to Api within a certain time frame, and SharePoint Online triggered a limit to prevent overuse of resources.
For more information, please refer to:
Avoid getting throttled or blocked in SharePoint Online | Microsoft Docs
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data