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

Validate rules fail to invoke a Sub Validate



On invoking an embedded Validate rule from a top Validate rule, error occurs and the Sub Validate does not execute.

Error Messages

[PegaRULES-Batch-5] [STANDARD] [ ] [your_name:01.01.01] (ernal.async.BatchRequestorTask) ERROR - Batch activity "YourClass.TestAct" threw: unable to execute agent: your_name #0: YourClass.TestActJava Exception: java.lang.NullPointerException  at com.pega.pegarules.session.internal.async.agent.QueueProcessor.execute( ~[prprivate.jar:?]  at ~[prprivate.jar:?]  at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock( ~[prprivate.jar:?]  at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked( ~[prprivate.jar:?]  at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked( ~[prprivate.jar:?]  at ~[prprivate.jar:?]  at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_201]  at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_201]  at [?:1.8.0_201]

Steps to Reproduce

  1. Create an Advanced agent.
  2. Configure the agent such that it invokes an activity.
  3. Create the activity and configure it to invoke a Validate rule.
  4. Create the Validate rule and invoke another Validate rule on the Page Context through the Workpage page type property.
  5. Create a Validate rule in the Call the Page Property context.

Root Cause

In Advanced agents, a defined primary page context does not exist; hence, it is set as null. The Agent activity is responsible for creating the Context page and working on that page. Since the Obj-Validate considers the page mentioned in the step as a stepPage, the Primary page remains null (which is set by the agents).


Perform the following local-change:

Switch to the Job Scheduler as the Agents are deprecated.

Published March 25, 2020 - Updated December 2, 2021

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