Riva CRM Integration - Documentation and Knowledge Base

Fix for Could Not Update State or Country Code with Invalid Code

Article ID: 1609
Last updated: 07 Apr, 2017

Issue

In Riva Cloud or Riva On-Premise, the following error may occur when syncing with Salesforce.

Could not update state or country code with invalid code. This is most likely a result of Riva Metadata being out of date.

Possible Cause #1 and Solution

The Riva metadata is out of date.

Solution for Riva Cloud

Refresh the metadata as follows:

  1. Log in to Riva Cloud.
  2. On the Dashboard, locate the Salesforce connection, and select Edit.
  3. Do not make any changes.
  4. Select Save.

Solution for Riva On-Premise

Refresh the metadata as follows:

  1. In the Riva Manager application, on the menu bar, select Setup. In the right pane, double-click the Salesforce connection to edit it.

  2. Select the Object Definition tab, and near the top of the page, select Refresh.

  3. Save the connection.

Possible Cause #2 and Possible Solutions

The state (or province) and/or country code in the email contact does not match any value on the Salesforce State and Country pick lists.

Possible solutions:

  • In the email system, correct the contact to have state (or province) and country codes that match perfectly the codes on the Salesforce State and Country pick lists; and/or
  • Make the sync supply a valid default value if the country code or state/province code in the email contact is invalid in Salesforce. For instructions, see Mitigating the risk of sync errors.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 1609
Last updated: 07 Apr, 2017
Revision: 5
Views: 3894
Comments: 0
Also listed in