Fix: Error while sending mail using EWS

Fix: Error while sending mail using EWS

Issue trace:

[11:58:49:091]|[11-29-2022]|[SYSERR]|[INFO]|[122]: microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: The operation can't be performed because the item is out of date. Reload the item and try again.|
[11:58:49:095]|[11-29-2022]|[SYSERR]|[INFO]|[122]: at microsoft.exchange.webservices.data.core.response.ServiceResponse.internalThrowIfNecessary(ServiceResponse.java:278)|
[11:58:49:095]|[11-29-2022]|[SYSERR]|[INFO]|[122]: at microsoft.exchange.webservices.data.core.response.ServiceResponse.throwIfNecessary(ServiceResponse.java:267)|
[11:58:49:099]|[11-29-2022]|[SYSERR]|[INFO]|[122]: at microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:165)|
[11:58:49:099]|[11-29-2022]|[SYSERR]|[INFO]|[122]: at microsoft.exchange.webservices.data.core.ExchangeService.sendItem(ExchangeService.java:789)|
[11:58:49:101]|[11-29-2022]|[SYSERR]|[INFO]|[122]: at microsoft.exchange.webservices.data.core.service.item.EmailMessage.internalSend(EmailMessage.java:171)|
[11:58:49:101]|[11-29-2022]|[SYSERR]|[INFO]|[122]: at microsoft.exchange.webservices.data.core.service.item.EmailMessage.sendAndSaveCopy(EmailMessage.java:300)|

Reason:

      Possible reason could be a racing condition / concurrent changes in the draft message before sending that mail.

Fix:

      Apply the attached fjar file corresponding to your build version and restart the application service.


Jar compatibility:

Build version
Fjar file
12000 - 12010
12007_8223753.fjar
13008 - 13009
13008_10008265.fjar
14205 - 14506
14504_ews_send_error.fjar
14600 - 14710
14600_10003118.fjar

For other build versions, reach our support.

                  New to ADSelfService Plus?

                    • Related Articles

                    • Sending notification failed

                      In some scenarios the outgoing emails will error with Sending notification failed message in UI and in the logs you can see, 550 5.2.125 The sender has exceeded the maximum number of messages they are allowed to send via client submission either per ...
                    • Mail sending failed_ Unrecognized SSL message, plaintext connection?

                      Log error trace: Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587;   nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? Solution: Error trace means ...
                    • Mail sending failed_Client was not authenticated to send anonymous mail during MAIL FROM

                      Error trace: Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM Please note that, this is not an issue with the application but with the outgoing mail ...
                    • Mail sending failed_Unable to relay

                      Error trace in logs: javax.mail.SendFailedException: Invalid Addresses;nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay Possible Cause: The SMTP server does not allow relaying unless you are sending email ...
                    • Unable to send reply’s in a specific format from the application when EWS is configured

                       When trying to send reply mail, if a user mail address is entered in the format "Name<email-address>", then an exception in EWS since, could not resolve this toaddress. Log Trace :  [22:10:27:393]|[09-21-2022]|[SYSERR]|[INFO]|[157]: ...