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:
- Log in to Riva Cloud.
- On the Dashboard, locate the Salesforce connection, and select Edit.
- Do not make any changes.
- Select Save.
Solution for Riva On-Premise
Refresh the metadata as follows:
- In the Riva Manager application, on the menu bar, select Setup. In the right pane, double-click the Salesforce connection to edit it.
- Select the Object Definition tab, and near the top of the page, select Refresh.
- Save the connection.
Possible Cause #2 and Possible Solutions
The state (or province) and/or country code in the email contact do 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.