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

Swarada Jalukar 20 Reputation points
2024-12-06T11:04:07.1066667+00:00

Following my previous thread : https://learn.microsoft.com/en-us/answers/questions/edit/2125176?page=1&orderby=helpful&comment=answer-1883392
Can someone help me in remediating below issue :

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
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

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.