I am using the graphClient for java and when calling fetchMessage(id), I am receiving the following error:
error=ErrorModel [errorCode=529, errorMessage=Process InboundEMail Exception. Details: Exception while process message with uuId: {removed_uuid}=, exception: JSONObject[“isDeliveryReceiptRequested”] is not a Boolean…]
So, my code cannot process the email. Can you please help me understand what might be wrong here. Here is basically what my code is doing
GraphMessageInfoCollection messages = eslGraphClient.listMessages();
if (messages != null) {
for (GraphMessageInfo messageInfo : messages) {
// Exception occurs on this fetchMessage call for the email I am processing
MapiMessage message = eslGraphClient.fetchMessage(messageInfo.getItemId())
I suggest you to please download the examples for Graph client from this link. If you still find issue, please share the account credentials that we may use on our end to verify and resolve the issue.
From using postman without any application code, I can see the json value of null being returned for isDeliveryReceiptRequested, possibly a null check is needed in your code as msgraph is not returning a boolean value. I am using the sample code in my application already, I am trying to further create the smallest possible java app with your sample and will continue on that effort, but seeing this null value and the exception seems like a pretty big clue, so I would appreciate if you could give me your opinion on if you think it could be your code.
I have created an issue with ID EMAILJAVA-34788 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.
The hotfix resolved the problem with handling null value of isDeliveryReceiptedRequested. I am no longer getting the exception and able to process the email. Thank you. Please let me know when you estimate making it available.