Mail folder message list response stops with an error

Joedie Villanueva 1 Reputation point
2022-08-02T21:03:48.313+00:00

I'm trying to get a list of messages in a mail folder.
I make a call to Graph API "Mail Folder / list messages" and it returns an error.
The response stops at the error, resulting in an incomplete response/Message collection.

{  
  "error": {  
    "code": "ErrorInvalidOperation",  
    "message": "The recurrence format wasn't valid., The duration between startTime and endTime (2.00:00:00) of the recurrence is greater than the minimum duration between two occurrences (1.00:00:00)."  
  }  
}  
  

Does anyone know what this error means?

Also, I would expect the response to still provide a full message collection, but instead, the response ends right after the error, which means the overall response is malformed and cannot be easily parsed.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,840 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Glen Scales 4,436 Reputation points
    2022-08-02T23:56:46.117+00:00

    What does your request look like ? do you get the same error when you try this in the Graph explorer https://developer.microsoft.com/en-us/graph/graph-explorer

    0 comments No comments

  2. Joedie Villanueva 1 Reputation point
    2022-09-14T14:44:24.347+00:00

    Thanks for the response @Glen Scales .
    The request was like:

    https://graph.microsoft.com/v1.0/users/<USER ID>/mailFolders('<MAIL FOLDER ID>')/messages?%24count=true&%24filter=createdDateTime+ge+2022-03-01T00%3a00%3a00Z+and+createdDateTime+le+2022-06-30T23%3a59%3a59Z&%24top=10&%24skip=122  
    

    Unfortunately this is data from a partner's tenant so we don't have the ability to use Graph Explorer on it.


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.