UiPathTeam.SharePoint.Activities - The remote server returned an error: (429)

Hi all,

By using the custom SharePoint activity (1.7.0) to copy/upload hundreds of files to SharePoint directory, sometimes I encounter an error - The remote server returned an error: (429).

This exception seems to occur randomly and not very often, however I haven’t found a reason for it. My guess is that SharePoint throttles after a long period of time, but I’m not totally sure, because the next file is usually processed just fine.

If any of you have any ideas or solutions, please share it.
Thanks.

Hi @AMatas , the 429 error has the “Too Many Requests.” text associated to it. Based on what you’re saying, it seems like you’re doing a lot of requests in a very short amount of time and it triggers the SharePoint Throttling limits that prevent a user from doing too many requests in a short amount of time, you can read more here: Avoid getting throttled or blocked in SharePoint Online | Microsoft Learn

I suggest you try to space out the requests a bit (perhaps experiment with a delay every x number of items moved) and that should eliminate those errors.
In the next version of the package, we’ll try to do something to mitigate that issue, but for now, I think you’ll have to account for it in your process

Thank you @radu_bucur for your answer, I’ll try to implement the specified suggestions. However, I also wanted to ask - is there a way to somehow configure throttling limit from the SharePoint team’s side?

1 Like

I don’t think there is something like that, unfortunately, probably it would’ve been listed in the article I linked if there were…

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

One more suggestion would also be to give the more modern activity package a go:
image