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

Error occurs when decision table is triggered in a loop



An error occurs when looping a list using 'For each Page' in a data transform to trigger a decision table and retrieve values.

Error Messages

Failed to find a 'RULE-DECLARE-DECISIONTABLE' with the name 'DECISIONTEST' that applies to 'Gcs-App-Work-Test'. There were 1 rules with this name in the rulebase, but none matched this request. The 1 rules named 'DECISIONTEST' defined in the rulebase are:

Steps to Reproduce

  1. Loop the embedded pages using 'For each Page' in a data transform.
  2. Configure a decision table in the Page context of each page to loop in. DataTransform should be configured in a different class context.
  3. Trigger the decision table.
  4. Fetch the values.
  5. Set the value to a parameter.

Root Cause

@(PEGA-RULES:ExpressionEvaluators).evaluateDecisionTable(DecisionTableName) runs in the dataTansform Class context. The decision table is triggered from embedded pages of a page list, however, the context is not passed to the evaluateDecisionTable function.


Perform the following local-change:

Use the below function to trigger the decision table of page context for each loop that is run.

Suggest Edit

Published September 19, 2018 - Updated October 8, 2020

Did you find this content helpful? Yes No

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.

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