I am receiving 'BPM-0703: Custom script syntax error at line x, column x: The value of attribute 'x' associated with an element type "core:while" must not contain the '<' character.' error

Document ID : KB000033581
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue:

When trying to validate a custom script in GEL, I am receiving the following error:

BPM-0703: Custom script syntax error at line x, column x: The value of attribute "x" associated with an element type "core:while" must not contain the '<' character.

This is also happening even after replacing < with &lt;

Steps to Reproduce:

  1. Create a new process with a step that uses a custom GEL script
  2. Use any of the 'core' tags (such as <core:while>) that has a value with &amp or &lt or &gt symbols
  3. Try to save the step 

Expected Result: The custom action GEL script page should save successfully

Actual Result: The custom action GEL script page is not saved successfully and the BPM-0703 error message is generated

Environment:

CA PPM v14.2 with patch level 1, 2 or 3.

Cause:

Caused by CLRT-78560 and related to CLRT-78367 and CLRT-77500 

Resolution:

Resolved in CA PPM 14.2 Generic Patch #4

Install latest generic patch available for CA PPM v14.2 as patch level 4 includes a fix for these GEL script issues. Still, the character < must be replaced with &lt; and then the Validate option will accept the GEL script.

Workaround:

Instead of using the "less than, <" (&lt;), the entities being compared can be swapped and use the "greater than, >" (&gt;) operator, e.g.: "test < 1" can be temporarily changed for "1 > test". 

Additional Information:

Reference TEC1398937 : PPM 14.2 Generic Patch available to resolve reported issues 

For more information on CLRT-77500, Reference TEC1168095 : BPM-7073 Error GEL Script in 14.2 when HTML img tag is present 

For more information on CLRT-78367, Reference TEC1829325 : Backslash is deleted when saving a gel script that reads a pipe delimited file