Skip to content
Community Hub
  • Login
  • Site
  • Search
  • User

x Want to ask a question or reply? Click here to join the group.
Sage CRM
  • Sage Global Solutions

Sage CRM

Welcome to the Sage CRM Support Group on Community Hub! Available 24/7, the forums are a great place to ask and answer product questions, as well as share tips and tricks with Sage peers, partners, and pros.
Fixes and workarounds Fix for Exchange sync failing
  • Forums
  • Blogs
  • Videos
  • Members
  • Resources
  • More
  • Cancel
  • Ask a question
  • -Fixes and workarounds
    • Fix for Exchange sync failing
    • Replacement eWareEmailManager.exe file
    • Replacement SageLoadSpinner.js file
    • Sage CRM 2022 R2: emailMailListViewModel

Fix for Exchange sync failing

Download file:  Fix for Exchange sync failing daily after midnight: Sage CRM 2021 R2 and above  

This fix is for Sage CRM 2021 R2 and above.

In instances of Sage CRM integrated with Microsoft Exchange, customers may experience an issue where Exchange sync fails every day after midnight.

An example log entry for the exchange failure is below:

ERROR [http-nio-10001-exec-3]: DD-MON-YYYY HH:MM:SS java.nio.file.InvalidPathException: Illegal char < > at index 127: C:\Program Files (x86)\Sage\CRM\.....\Logs\Exchange Integration\User\....\'admin_syncActivityExchangeToCRM- .log

The issue is caused by the file pattern defined in log4j2.xml. This error did not allow CRM to create a new log file daily.

The following are workarounds.

Workaround 1: Restarting Tomcat Daily.

Restarting Tomcat daily can resolve this issue. It will allow CRM to generate a new daily log. You can schedule the restart process daily by following the below post.

https://communityhub.sage.com/sage-global-solutions/sage-crm/b/sage-crm-hints-tips-and-tricks/posts/how-to-schedule-a-tomcat-service-restart

Workaround 2: Changing pattern in Log4j2.xml file.

Restarting Tomcat daily is not feasible for all clients.

The other solution is to change the pattern of syncActivityExchangeToCRM.log in the log4j2.xml file.

You can use the below attached log4j2.xml file and replace it with the old one in

<CRM INSTALL>\tomcat\webapps\<install_name>j\WEB-INF\classes.

These workarounds will help you to resolve the issue.


This article applies to Sage CRM stand-alone and when integrated with Sage accounting products. Sage 50, Sage 100, Sage 200, Sage 300, Sage X3 and Sage Intacct.

  • Share
  • History
  • More
  • Cancel
Recommended
Sage
Africa & Middle East Canada France Portugal Spain United Kingdom & Ireland United States Global Solutions
  • facebook
  • instagram
  • linkedin
  • youtube
COMMUNITY
  • Site help
  • Site map
COMPANY
  • Overview
  • About us
  • Careers
  • News
  • Sage events
  • Investors
  • Sage Foundation
PARTNERS
  • Sage Partner Program
  • Partner Hub
  • Developers & ISVs
  • Sage Marketplace
SUPPORT & TRAINING
  • Contact Support
  • Sage Knowledgebase
  • Sage University
  • Sage Advice Blog
  • © Sage Group plc 2024
  • Privacy
  • Cookies
  • Community guidelines
  • General data protection regulation

*Community Hub is the new name for Sage City