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

Unable to create top level case with pxCreateTopCase



An agent was set up within the ruleset of the application. This was configured according to the documentation in advanced mode. The agent will not be fed in queue items. It is set to run pxCreateTopCase in the context of the class. The class name was passed to the activity as well. The agent fails when it is run. An error occurs in catalina.out.

Error Messages

**Date and time**,464 [ PegaRULES-Batch-1] [ STANDARD] [ ] [ PegaRULES:07.10] ( hasMessages._baseclass.When) ERROR - Exception caught while evaluating when

Steps to Reproduce

1. Create agent within application ruleset.
2. Add an advanced agent, which calls the pxCreateTopCase activity in the context of the top case's class.
3. P
ass that class to the ClassName parameter of pxCreateTopCase.
Run the agent.

Root Cause

An issue in the custom application code or rules. hasMessages When rule failed because stepPage was missing. hasMessage is called at the end of Step 2 of pxCreateTopCasehasMessages is basic validation check that is done on stepPage. Primary page was not set when pxCreateTopCase was called through an agent.


1. Use another activity, which has extra step for Page-New.
2. Call pxCreateTopCase.

Published April 12, 2016 - 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