Riva CRM Integration - Documentation and Knowledge Base

EWS Error - Unable to Connect to Remote Exchange Server with Given Credentials

Article ID: 646
Last updated: 06 Aug, 2015

A customer reported seeing "Unable to connect to remote Exchange server with given credentials" errors in the CRM Monitor.  Examination of the crmex-log files revealed the following error:

2012-01-16 16:14:56,120  INFO [CTP-uox #6706] [482012756] Starting synchronization for user@mycompany.com
2012-01-16 16:14:56,120  INFO [CTP-uox #6706] [482012756] Initializing
2012-01-16 16:14:56,542  INFO [CTP-uox #6706] [482012756] [XC] Error - Unable to connect to remote Exchange server with given credentials.
2012-01-16 16:14:56,542  INFO [CTP-uox #6706] [482012756] Error - Unable to connect to remote Exchange server with given credentials.
2012-01-16 16:14:56,542  INFO [CTP-uox #6706] [482012756] Unable to initialize: Unable to connect to remote Exchange server with given credentials.
2012-01-16 16:14:56,542  INFO [CTP-uox #6706] [482012756] Drop Folder Check Completed in 0 secs.  (16:14:56)
2012-01-16 16:14:56,542 ERROR [CTP-uox #6706] [482012756] Minor error occurred during synchronization.
Omni.Scheduling.SchedulePostponeException: Unable to connect to remote Exchange server with given credentials. ---> System.UnauthorizedAccessException: Unable to connect to remote Exchange server with given credentials. ---> Microsoft.Exchange.WebServices.Data.ServiceRequestException: Request failed. The remote server returned an error: (401) Unauthorized. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

Cause

This Exchange Web Services error indicates that the attempted connection failed because it was unauthorized.  This can occur if the Riva connection account to Exchange has undergone a password change, or if the username has been changed.

Resolution

From MMC Users and Computers, verify that the username for the Riva connection account has not been changed.  If the username has been changed so that it does not match the username in the Riva EWS connection, modify the username in the Riva EWS connection. If that solution does not work, the issue must be with the password.

  1. Launch the Riva Manager application, and select the Setup tab.  In the right pane, double-select the EWS connection to edit it.

  2. In the Connection Details tab of the window that appears, modify the username to match the AD username.

  3. Provide and verify the correct password.

  4. Save and re-open the EWS connection.

  5. Perform a connection test for the Riva connection account.  If the connection test passes, run an impersonation check against some of the target users.  If this check works, the password saved in the Riva connection is correct.  If the connection test fails, reset the password in MMC Users and Computers and then reset the password again in the Riva EWS connection. Test the connection again. 

For more information, see Change the password for an EWS connection.

Applies to

  • Riva for Exchange using EWS connections

Article ID: 646
Last updated: 06 Aug, 2015
Revision: 2
Views: 15390
Also listed in