Riva CRM Integration - Documentation and Knowledge Base

How to resolve Riva - Microsoft Dynamics CRM connection timeouts

Article ID: 500
Last updated: 19 Sep, 2023

Applies to Riva Cloud and Riva On-Premise.

Contents:

Organization.svc Timeout

Sample error message:

Server Timeout Error. Inner Fault: The HTTP request to 'https://xxxxxxxxxxxx/XRMServices/2011/Organization.svc' has exceeded the allotted timeout of 00:02:00. The time allotted to this operation may have been a portion of a longer timeout.

Solution for Riva Cloud:

Contact the Riva Success Team.

Solution for Riva On-Premise:

The following solution is available for

  • Riva 2.4.40.27881 or higher, or
  • Riva 2.4.41 or higher.

To prevent the Organization.svc timeout:

  • Apply the following advanced custom option to the CRM connection:

    Sync.MsCrm.OrganizationServiceTimeoutInSeconds = nnn

    where nnn is the number of seconds. Default: 120 (2 minutes). If nnn is set to 0 (zero), the default 2-minute timeout is activated.

    Example: To resolve the previous sample error, you could use 300 (five minutes).

Other Timeouts

In some environments, the Microsoft Dynamics CRM (Dynamics CRM) server response times can be very slow, due to network connectivity or performance issues. This is more often the case when dealing with hosted Dynamics CRM services.

Solution for Riva Cloud:

Contact the Riva Success Team.

Solution for Riva On-Premise:

To extend or reduce the timeout of a Dynamics CRM web service request:

  • Create [or edit] an App.Setting file to enable [one or both of the following] advanced options:

    MsCrm.AuthTimeout = nnn (where nnn is the number of seconds. Default: 30000 (30 seconds). This option sets the timeout used while authenticating.)

    MsCrm.ServiceTimeout = nnn (where nnn is the number of seconds. Default: 600000 (10 minutes). This option sets the timeout used for all other requests.)

    Setting nnn to 0 (zero) activates the timeout's default value.

    Note: Modify one or more of the following files:

    • For the Riva Manager application: For testing Dynamics CRM connections, modify the file RivaApp.exe.config

    • For the Riva CRM Agent for Exchange: For data sync using Dynamics CRM connections, modify the file Omni.Riva.CrmAgentEx.exe.config

    • For the Riva CRM Agent for GroupWise: For data sync using Dynamics CRM connections, modify the file Omni.Riva.CrmAgent.exe.config
       

Applies to

  • Riva Cloud for Exchange (all versions) or GroupWise.
  • Riva On-Premise 2.4.40.27881 or higher, or 2.4.41 or higher, for the Organization.svc timeouts.
  • Riva On-Premise 2.4.25 or higher for the other timeouts.
  • Riva On-Premise for Exchange (all versions) or GroupWise.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 500
Last updated: 19 Sep, 2023
Revision: 5
Views: 6548
Comments: 0
Also read

Also listed in