$skiptoken limit error for Microsoft Exchange online Reporting web service API

Swarada Jalukar 20 Reputation points
2024-12-02T07:33:28.1+00:00

I was working on integrating MessageTrace report API as a part of my SIEM integration:
https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace[?ODATA options]
I have noticed that, whenever my $skiptoken reaches the limit 999999 , it throws the following error with 500 status code:
{`` ``"odata.error": {`` ``"code": "UnknownError",`` ``"message": {`` ``"lang": "",`` ``"value": "An error has occurred on the server."`` ``}`` ``}`` ``}

Is there any limitations on $skiptoken value from the API itself? It was working fine for the 999998 value. If $skiptoken value 999999 exists, for example,
"odata.nextLink": "../../reportingwebservice/reporting.svc/MessageTrace?$filter=StartDate%20eq%20DateTime'2024-12-02T00%3A00%3A00Z'%20and%20EndDate%20eq%20DateTime'2024-12-02T23%3A59%3A59Z'&$skiptoken=999999"
how can we request the data from next set of events?

Can someone let me know, is there any max limit from API side or the $skiptoken?

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,371 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
4,218 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,655 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
558 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jenne Li-MSFT 930 Reputation points Microsoft Vendor
    2024-12-03T05:28:03.43+00:00

    Hi @Swarada Jalukar

    Thanks for posting your question in the Microsoft Q&A forum.

    According to your description, you have encountered the problem of 500 errors when $skiptoken reaches the limit, and you want to know if there is any maximum limit on the API side or $skiptoken.

    First of all, regarding API limits, Microsoft Graph API (including Message Tracking API) has specific rate limits. Usually, it is limited to a maximum of 60 requests per minute and a maximum of 1,000 requests per hour. These limits may vary depending on the request type and the specific API endpoint used.

    Regarding $skiptoken, it is usually used for paginated query results. Depending on different APIs and services, the maximum limit of $skiptoken may vary, depending on the implementation of the API.

    If you have any questions, please feel free to contact me. If the answer is helpful, please click "Accept Answer" because it can help other members of the Microsoft Q&A community who have encountered similar problems and are looking for solutions. Thank you.

    Best,

    Jeanne


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.