Forum Discussion

Eline_SharePointFAB's avatar
Eline_SharePointFAB
Copper Contributor
Oct 12, 2023

Error 429 when processing large documentlibrary

I'm trying to clean up all document versions above 100 on all documentlibraries in client's tenant. 

The smaller ones are fine and are cleaning up like a charm. But the bigger ones give problems. 

Is it possible to load the documents in a library in intervals of for example 5000 documents at a time, so that chance of throttling can be minimized? 

I have attached a photo of the script. The parameters are above (Site/document libraries/versions to keep)

 

1 Reply

Resources