KB-1982 Process model version comparison fails with a generic error

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 compare two versions of a process model, the following error appears:

Cannot compare versions. The process model does not exist, the versions have been deleted, or you do not have sufficient privileges to access its data.

In the application server log, an error similar to the following is observed:

ERROR com.appiancorp.core.expr.fn.info.LogLastExceptionFunction - Expression evaluation error at function a!dod_fwk_controller [line 14]: Error in a!forEach() expression during iteration 4: Expression evaluation error at function a!dod_fwk_createDiffSection [line 65]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!dod_fwk_iterateComponents [line 48]: Error in a!forEach() expression during iteration 3: Expression evaluation error at function a!dod_fwk_sectionsGenerator [line 103]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!dod_fwk_createDiffSection [line 65]: Error in a!forEach() expression during iteration 4: Expression evaluation error at function a!dod_fwk_createDiffSection [line 65]: Error in a!forEach() expression during iteration 4: Expression evaluation error at function a!dod_fwk_createDiffComponent [line 94]: Illegal newline character found in: =if(
isnull(pv!user),
pp!initiator,
pv!user
)_0
com.appiancorp.core.expr.exceptions.ExpressionRuntimeException$AppianExceptionProvider: Expression evaluation error at function a!dod_fwk_controller [line 14]: Error in a!forEach() expression during iteration 4: Expression evaluation error at function a!dod_fwk_createDiffSection [line 65]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!dod_fwk_iterateComponents [line 48]: Error in a!forEach() expression during iteration 3: Expression evaluation error at function a!dod_fwk_sectionsGenerator [line 103]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!dod_fwk_createDiffSection [line 65]: Error in a!forEach() expression during iteration 4: Expression evaluation error at function a!dod_fwk_createDiffSection [line 65]: Error in a!forEach() expression during iteration 4: Expression evaluation error at function a!dod_fwk_createDiffComponent [line 94]: Illegal newline character found in: =if(
isnull(pv!user),
pp!initiator,
pv!user
)_0 (APNX-1-4198-000)

Cause

This issue has been hotfixed via AN-133660 in:

  • 19.1.150.0
  • 19.2.125.0
  • 19.3.57.0
  • 19.4 and later

Action

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

Workaround

If not on a fixed version, to ensure future versions of the model do not encounter issues:

  1. Determine which node in the process model has an assignment expression that contains newlines.
  2. Modify the expression to remove any newlines.
  3. Save and publish the process model.

Affected Versions

This article applies to Appian 19.1 and later.

Last Reviewed: September 2022

Related
Recommended