Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Decision table with string function displays incorrect result



Decision table configured with 'contains' string function displays incorrect result.

Error Messages

Test compilation failed:
Error in Rule_Declare-DecisionTable
ClipboardPorperty ColVar1_circum0=0
Property for this column of the table : Invalid expression or reference: line 1:69 missinf '>' at '-'

Steps to Reproduce

  1. Create a decision table.
  2. Assign a condition column property for an 'if' clause as @(Pega-RULES:String).contains(TestPage.Test, <current-value>).
  3. Assign return values.
  4. Run the table.

Root Cause

The condition column property is compared with the result of the 'contains' function. Additionally, using <current-value> in the expression builder displays the error while saving the rule.


Perform either of the following local-changes:
  • Compare @(Pega-RULES:String).equals("true","true") (this evaluates to true always) column level property with the below row level condition.

    @(Pega-RULES:String).contains(TestPage.Test, "<String>")

  • Compare @(Pega-RulesEngine:String).pxContainsViaRegex(TestPage.Test, <current-value>, true) column level property with "<String>" row level conditions.
The <current> keyword (in Pega 7.1.7) is replaced with <current-value> keyword in the new Pega versions.


Published August 29, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us