Limitations of "SP.MoveCopyUtil.CopyFileByPath" API in SharePoint 2019

Lee, Jason J 41 Reputation points
2024-05-21T03:17:13.9266667+00:00

Hello everyone,

I'm encountering some issues while using the SP.MoveCopyUtil.CopyFileByPath API in SharePoint 2019. I need to copy 36 files, but the API calls stop after executing 30 times without any error messages. I'm wondering if there's a default limit on the number of API calls or any other factors that might be affecting this operation.

Here are the specifics of my situation:

  • I am using SP.MoveCopyUtil.CopyFileByPath to copy files from one path to another.
  • I checked for errors after each call, but no error messages were returned.
  • After 30 API calls, the operation stops, and the remaining files are not processed.

I have reviewed my code logic and did not set any call limits. I understand that SharePoint might have some internal throttling mechanisms, but I couldn't find specific details on the limit values or configuration methods.

Does anyone know if SharePoint 2019 has a limit of 30 API calls per minute? Or do you have any suggestions on how to resolve this issue? Any help would be greatly appreciated!

Thank you!

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,002 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 32,476 Reputation points Microsoft Vendor
    2024-05-21T09:24:24.07+00:00

    Hi @Lee, Jason J

    SharePoint Connection throttle limit of 600 APIs call per minute. 30 APIs call shouldn't getting throttled or blocked. You could refer to the following document which list all limitation

    https://learn.microsoft.com/en-us/sharepoint/install/software-boundaries-limits-2019


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful