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

RuleNotFoundException when unit testing flow



A Fail error message is thrown when playing back a recorded flow test case.

Error Messages

Caused by: Failed to find a 'RULE-OBJ-ACTIVITY' with the name 'WORK-.NEWCOVERED' that applies to 'ORG-Work'; no rules with this name were found in the rulebase.
at com.pega.pegarules.generation.internal.vtable.ruleres.VirtualTableResolver.checkCandidateList(
at com.pega.pegarules.generation.internal.vtable.ruleres.VirtualTableResolver.resolveRule(
at com.pega.pegarules.generation.internal.vtable.VirtualTableImpl.resolveRule(
at com.pega.pegarules.generation.internal.PRGenProviderImpl.get(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pegarules.generated.callActivity_071017_xvj4o_pyNDBZ4Gy293rekg.callActivity07_10_17(
at com.pegarules.generated.callActivity_071017_xvj4o_pyNDBZ4Gy293rekg.invoke(
at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(
at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(
at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(
at com.pegarules.generated.pega_rules_utilities.callActivity(
at com.pegarules.generated.activity.ra_action_flowplaybackstep_1bd35655623c29fb19b1c100eba1517a.step4_circum0(
at com.pegarules.generated.activity.ra_action_flowplaybackstep_1bd35655623c29fb19b1c100eba1517a.perform(

Steps to Reproduce

Replay the recorded test case.

Root Cause

A defect in Pegasystems’ code or rules. The pega_rule_utilities.callActivity function assumes the parameter pyActivity contains a simple activity name. If the original execution of the command being replayed actually used the valid reference to <classname>-.<activityName>, the function does not know to strip off the leading class name and instead looks for a function with name <classname>-.<activityName>.  


Apply HFix-30011. The hot fix strips off any leading class name from the input parameter.


Published October 27, 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