Recently faced a issue in Graph API while requesting details of outlook email messages with error message ‘ErrorItemPropertyRequestedFailed’ which is said to occur if a property request on an item fails. The property may exist, but it could not be retrieved (reference).
I selected all available props of a email message with query
https://graph.microsoft.com/v1.0/me/mailfolders/inbox/messages?$select=*&$orderby=receivedDateTime+desc"
where breaking this down to know the prop on which the request fails I broke down the query by selecting specific props and found that body is the one that couldn’t be retrieved in graph request as while excluding this form the selected query does not throw any error and including it in query does.
To know why, I digged further:
I’ve made a request to get details of messages in the order of receivedDateTime and in the response details of messages are available until a message with such unretrievable property in encountered and error is metioned which becomes the end of the response.
so in outlook while examining the folder on which the request made in, I found the message where the issue is(with details of messages in the response & inbox folder in the order of received time). the body seems very large which must be the reason that it could not be retrieved.
I need UniqeBody content for some use case. there anything that I could make like adding parameters to graph query that throttles this case or anything that could help me retrieving the message/ just skip the message as no delta or next link is obtained in response in such cases it becomes difficult to get other message’s details.