Skip to content

Testing Error in Orgs with State & Country Code Picklists #976

@jobcentersoftware

Description

@jobcentersoftware

Package Edition of Nebula Logger

Unlocked Package

Package Version of Nebula Logger

4.17.4

New Bug Summary

We are getting consistent errors in the LoggerEmailSender class, after the recent Email-related patch. In orgs that have County picklists enabled, this is happening during our builds. In orgs that do NOT have state and country picklists enabled, the patch is working just fine.

  <testcase name="it_should_indicate_email_deliverability_is_based_on_email_deliverability_when_org_limits_not_exceeded" classname="LoggerEmailSender_Tests" time="0.07">
            <failure message="System.DmlException: Update failed. First exception on row 0 with id 005SK00000EG2llYAD; first error: FIELD_INTEGRITY_EXCEPTION, There&apos;s a problem with this country, even though it may appear correct. Please select a country/territory from the list of valid countries.: [Country]"><![CDATA[Class.LoggerEmailSender_Tests: line 32, column 1]]></failure>
        </testcase>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions