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
Mail folder message list response stops with an error
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.
2 answers
Sort by: Most helpful
-
-
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.