Forum Discussion
Cauldron_of_Penguins
Sep 05, 2019Copper Contributor
Handling CSOM 429 Errors from PowerShell Scripts
I have a PowerShell script which processes a large number of lists, it *will* get 429 errors. I could put a sleep in there, but how long? Too long will make an already long-running script unnecessar...
Deleted
Dec 27, 2019
I had this same 429 issue.
Doing "decorate" thing did not make a difference, and adding a few seconds of "sleep" between each update helped a little bit but did not fully resolve the problem.
I resolved it by using ExecuteQueryAsync() instead of ExecuteQuery().