How to troubleshoot a refused connection to the Office 365 Exchange Web Services.

Hints, Tips and Tricks

Technical Hints Tips and Tricks that cover customization and development using Sage CRM. API usage and coding are covered.

How to troubleshoot a refused connection to the Office 365 Exchange Web Services.

  • Comments 2
  • Likes

If you have tried to setup Exchange Integration with Office 365 then you might have run into this problem when defining the connection.  


"The Exchange Server Connection could not be saved as the Sync Engine was unable to contact the Exchange Web Service.  Please refer to the Exchange Server Integration chapter of the System Administration Guide for information on possible causes of the unavailability of the Exchange Web Service."

 

You can see the error below in this diagram :

 

Also your Exchange Configuration Log may indicate following error:

ERROR: 09-Feb-2012 09:21:18.586 ewsUrl: https://OFFICE365url.outlook.com/EWS/exchange.asmx, operation: checkExchangeConnection, error: SSL certificate error, org.apache.http.conn.HttpHostConnectException: Connection to https:// OFFICE365url.outlook.com refused, action: ESTABLISHING_CONNECTION_EWS_ENDPOINT

If this is the case then it is highly probable that your CRM install is behind proxy.  

You can avoid this error during Exchange Integration setup if you have setup proxy settings for the sync engine. To do this you will have to edit the syncengine.properties file located at

C:\Program Files (x86)\Sage\CRM\<<install_name>>\tomcat\webapps\crmExchangeSyncEngine\WEB-INF

and change following:

 to

Once you have done that you will need to save the changes and restart the Tomcat service via the command line or using Windows Services.

Finally open Exchange Server Integration and enter details for EWS and hit save button. You should now connect to Office 365 without any errors.



 

 

Comments