Forum Discussion
CRbot
Aug 15, 2023Copper Contributor
SPQueryThrottledException from file upload
We're working on an automation that's uploading a lot of files to SharePoint through the office365 library in python We've started getting this exception - form what I've been able to find it loo...
CRbot
Aug 22, 2023Copper Contributor
For anyone who faces this issue we mitigated it by uploading to a different directory
0. Catch `ClientRequestException` and confirm it's _this_ exact issue
1. Parsed the attempted upload path to identify the parent directory of the directory we're trying to upload a file to
2. Append an integer to that file name
3. Check for that directory and upload if it doesn't exist
4. Upload to that directory instead
0. Catch `ClientRequestException` and confirm it's _this_ exact issue
1. Parsed the attempted upload path to identify the parent directory of the directory we're trying to upload a file to
2. Append an integer to that file name
3. Check for that directory and upload if it doesn't exist
4. Upload to that directory instead