How to generate 429 - activityLimitReached error using Graph API for SharePoint

Casepoint Developer1 1 Reputation point
2022-07-07T10:01:21.277+00:00

Hi MS Team,

We are using MS Graph APIs for getting data from SharePoint. We are getting 429 - activityLimitReached error sometimes. We have tried many ways to regenerate this error (ex: by making async API calls, using graph explorer etc) but we are not able to regenerate it. We need help to regenerate this issue so we can do further solutions.

Details are as follows:

GET APIs:

  1. https://graph.microsoft.com/v1.0/sites/{0}
  2. https://graph.microsoft.com/v1.0/sites/{0}/drives
  3. https://graph.microsoft.com/v1.0/sites/{0}/drives/{1}
  4. https://graph.microsoft.com/v1.0/sites/{0}/drives/{1}/items/{2}
  5. https://graph.microsoft.com/v1.0/sites/{0}/drives/{1}/items/{2}/children
  6. https://graph.microsoft.com/v1.0/sites/{0}/drives/{1}/items/{2}/content

POST API:
url - https://graph.microsoft.com/v1.0/search/query
payload:
{
"requests": [
{
"entityTypes": [
"driveItem"
],
"query": {
"queryString": "Title:test"
}
}
]
}

Can you please provide some steps to regenerate this issue as we have already tried many things?

We appreciate your help.

Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,376 Reputation points
    2022-07-08T10:27:54.143+00:00

    Hi @Casepoint Developer1

    A 429 error will only be reported if your number of requests exceeds the service limit. Since this error is usually thrown in high concurrency scenarios, I can't reproduce it for you.

    You can avoid such errors by referring to the Microsoft Graph service-specific limitations.


    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.