Riva CRM Integration - Documentation and Knowledge Base

Error: Synchronization Failed Due to Crm ID Conflict

Article ID: 1270
Last updated: 20 Jul, 2021

Contents:

Issue

In Riva On-Premise 2.4.39.24181 or higher, for a supported email system, the following error may occur:

Synchronization failed due to Crm ID conflict. <005E0000006Ta9MIAS> already registered for another user.

Cause

A user was not properly renamed in the Riva sync policy. As a result, the sync policy is relating the Crm ID to the original user name instead of the new user name.

Note: Allowing the sync to proceed for that user would have resulted in duplicate contacts, tasks, and calendar items.

How the users were not properly renamed

Background:

Typically, this error occurs in one of two scenarios that are not handled correctly:

  • Someone has a change of surname, which causes the user name to change: for example. a-surname@ changes to a-new-surname@.
  • The email domain name changes: for example, @mycompany.com changes to @example.com.
     

Examples of incorrect ways to attempt renaming the user in Riva sync policies:

  • Situation: The user's primary SMTP reply-to email address is renamed in the email system, and the primary email address value for the CRM user is modified.
    Incorrect Riva admin action: Removing the user from the sync policy and re-adding the user with the new email address.

  • Situation: Users are assigned to a Riva sync policy by means of an email system group. Some or all of the user primary SMTP reply-to email addresses are renamed in the email system, and the primary email address values for the CRM users are modified.
    Automatic processing: The change of user names propagates to Riva when Riva resolves the group member list, usually within 24 hours.
     

Immediate Solution: Correcting the Improperly Renamed Users

Background:

When a user has been improperly renamed in a Riva Sync policy, Riva has two transaction folders for the user:

  • The original user transaction folder, which contains a full set of transaction metadata files.
  • The new user transaction folder, which contains only an entity.settings file.
     

The following procedure is designed to move the transaction metadata files to the new user transaction folder and reset the Crm ID relationship. For this example, the original user is gwelling@dev03-ex07.com and the renamed user is gordon@dev03-ex07.com.

The procedure can be used to reset a single user or multiple users that were not properly renamed in the Riva sync policy.

To correct improperly renamed users:

  1. In the Riva Service Monitor application, stop the service.

  2. In the Riva Manager application, on the menu bar, select Policies. Edit the sync policy for the users that were renamed.

  3. On the General page, press the CTRL key, and double-click Name.

    Result: Windows Explorer displays the contents of the root path of the transaction folders for that sync policy.

  4. Navigate to the \Lookup folder.

    Result: You can see two user folders for each improperly renamed user. As per our example, you will see one for gwelling.

    You will also see one folder for gordon.

  5. Move all of the metadata and metadata-journal files from the original user folder to the renamed user folder. They must be moved specifically; do not simply copy these files.

    Note: Do not move the entity.settings file. Riva uses the new entity.settings file that is already in the renamed user folder.

  6. For every user who was not properly renamed in the sync policy, repeat steps 4 and 5.

  7. Close any open Windows Explorer windows.

  8. In the Riva Manager application, navigate to the Re-Initialize page.

    Note: In policies created in Riva 2.4.45 or earlier, that page is named Sync Start Time.

  9. While continuing to prepare to re-initialize, be sure to do the following:

    1. Select the users that were renamed.

    2. In Riva 2.4.46 or earlier, skip this step (without any problem). In Riva 2.4.47 or higher, in the Category field, select Sync Restriction.

    3. In the Type field, select Clear Mailbox Id Conflict.

  10. Save the sync policy, and select Yes to restart the service.

    Result: When the user is synced, Riva resets the Crm ID relationship to the renamed user and continues syncing data from where it last successfully synced.

Note: If the "Synchronization failed due to Crm ID conflict" error persists, contact the Riva Success Team for a solution.

Pro-Active Best Practice: Renaming Users Properly from Now On

There are proper procedures to rename users in the Riva sync policy that clear the relationship of the user name to the corresponding Crm ID, so that Riva resets the Crm ID against the new user name defined in the sync policy and the error is not issued.

Process Note on Improperly Renaming Users

Improperly renaming a user causes the renamed user to be treated as a new user, and a new user transaction folder is created for that user. The default action for new users is a first time sync. But, Riva tracks the original user name used when the user was assigned to the sync policy against the Crm ID of the user CRM account. It checks to see if there are previous transactions for the Crm ID, and if one is discovered, Riva creates a new user transaction folder, adds a new entity.settings file, and reports this Crm ID conflict error. That process prevents unwanted sync records that would result in duplicate contacts, tasks, and calendar items from being created in the user's email account.

Article ID: 1270
Last updated: 20 Jul, 2021
Revision: 34
Views: 7779