KB-2021 Compare App fails at a!dpl_app_actionInspectOnConnectedEnvironment [line 311] with error "Keys must be unique"

This issue has been resolved in an Appian hotfix/new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.

Symptoms

When attempting to use the Compare App feature across two environments with an established Devops: Infrastructure connection, the following error message appears:

This same error will appear in the application server log as well:

com.appiancorp.exceptions.LocalizedAppianRuntimeException$LocalizedAppianException: Expression evaluation error [evaluation ID = XXXXXXXX] : [valid:false,syntaxError:false,value:Expression evaluation error: An error occurred while executing a save: Expression evaluation error at function a!dpl_app_actionInspectOnConnectedEnvironment [line 311]: Keys must be unique (case insensitive match) [{urn:com:appian:types:XXX}XXX]] (APNX-X-XXXX-XXX)

Cause

This issue is a result of case-colliding CDT names being exported in a patch via the Devops: Infrastructure connection. An example of this would be exporting a patch which contains one CDT named "EXAMPLE" and one CDT named "example." This issue has been addressed via AN-142355 in the following hotfixes/versions:

Action

Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.

Workaround

The workaround to this issue would be to remove all instances of case-colliding CDT names from your patch.

Affected Versions

This article applies to Appian 19.2 and 19.3.

Last Reviewed: November 2019

Related
Recommended