Mail Fetching schedule is stopped when connection failure happens during mail deletion

Mail Fetching schedule is stopped when connection failure happens during mail deletion

Mail Fetching schedule is stopped when connection failure happens during mail deletion.

Error Trace:

[11:49:57:638]|[10-23-2021]|[com.adventnet.servicedesk.helpdesk.mail.task.MailFetchingTask]|[INFO]|[276]: delete mode start|
[11:49:57:864]|[10-23-2021]|[SYSERR]|[INFO]|[276]: com.manageengine.servicedesk.mailutils.MailException: Exception while setting delete flag|
[11:49:57:864]|[10-23-2021]|[SYSERR]|[INFO]|[276]: at com.adventnet.servicedesk.helpdesk.mail.task.MailFetchingTask.emailThreadOfEWS(MailFetchingTask.java:560)|
[11:49:57:864]|[10-23-2021]|[SYSERR]|[INFO]|[276]: at
..........
..........
[11:49:57:864]|[10-23-2021]|[SYSERR]|[INFO]|[276]: at java.lang.Thread.run(Thread.java:748)|
[11:49:57:864]|[10-23-2021]|[SYSERR]|[INFO]|[276]: Caused by: microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: An internal server error occurred. Try again later., This connection to Store is dead|

Fix:
To identify the above issue as connectivity issue added the error message "This connection to Store is dead" internally so that this excepction will be considered as connectivity exception and current schedule alone will be skipped

Reference Ticket: 

Files Modified:
<SDP>\helpdesk\src\library\com\manageengine\servicedesk\mailutils\MailAPI.java

Jar Compatibility :
    11309 SDP Build version

          • Related Articles

          • Failure during Zia Reopen prediction process stops the mail fetching schedule

            When the requester replies to closed/resolved requests with empty content or if there is no proper content except the content of the parent mail, then no content will be available for zia reopen prediction process and an exception will be ...
          • List of mail fetching issues and solutions

            Scenario 1 : Mail fetching issue due to Invalid or No PKIX certificate .   Log traces for Mail Fetching  issues Exception when connecting to store.|javax.mail.MessagingException: sun.security.validator.ValidatorException: PKIX path building failed: ...
          • Applying mail server's certificate in ServiceDesk Plus

            To establish a secure connection between ServiceDesk Plus and email servers configured with a self-signed certificate, follow these steps: 1. Download the attached file. 2. Extract the files to the ServiceDesk Plus directory. 3. The files will now be ...
          • Mail Fetching issue due to Unrecognized SSL exception!

            Error Trace: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source) Exception from UI: FAILURE  :E- mail settings saved successfully. But error ...
          • Problem in extracting emails via EWS from 11134

            Emails getting fetched via EWS are getting failed to process and stops the Mail Fetching when that mail's object doesn't have InternetMessageHeaders. Note: This issue will not occur for all emails extracted via EWS except for the emails which don't ...