QUESTION:
We are seeing unit test failures for ParentFixer which seem to be related to having State and Country picklists enabled:
System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, There's a problem with this country, even though it may appear correct. Please select a country from the list of valid countries.: [BillingCountry]
This is preventing us from deploying new code. Is there a way to get around this?
ANSWER:
The problem is that ParentFixer unit tests are inserting the 2 digit state and country abbreviations and Salesforce requires the LONG form when inserting directly into any state or country fields (except the new "code" fields, but we do not populate those directly).
To workaround this issue ignore unit test failures in order to deploy your code. The solution Ignoring DupeBlocker Unit Test Failures explains how to do this (the solution refers to DupeBlocker but the process is the same for ParentFixer).
NOTE: We do plan on fixing this in a future release, but there is no ETA currently.