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

Failed to find instance @baseclass.CloseWorkItem during WrapUp

SA-2189

Summary



End user have reported that they were getting "Failed to find instance @baseclass.CloseWorkItem of type Rule-Obj-Activity" exception sporadically on screen while performing Wrap-up of an Interaction.

Error Messages



com.pega.pegarules.pub.generator.RuleNotFoundException: Failed to find instance @baseclass.CloseWorkItem of type Rule-Obj-Activity.
at com.pega.pegarules.generation.internal.assembly.FUAInstance.getRules(FUAInstance.java:2391)
at com.pega.pegarules.generation.internal.assembly.FUAInstance.getClassSource(FUAInstance.java:2557)
at com.pega.pegarules.generation.external.assembly.Assembler.getClassSource(Assembler.java:867)
at com.pega.pegarules.generation.internal.cache.FUACacheImpl.assembleRule(FUACacheImpl.java:3340)
at com.pega.pegarules.generation.internal.cache.FUACacheImpl.buildAndOrLoadJavaClass(FUACacheImpl.java:3557)
at com.pega.pegarules.generation.internal.cache.FUACacheImpl.findInner(FUACacheImpl.java:2646)
at com.pega.pegarules.generation.internal.cache.FUACacheImpl.find(FUACacheImpl.java:1820)
at com.pega.pegarules.generation.internal.assembly.FUAManagerImpl.getInternal(FUAManagerImpl.java:1098)
at com.pega.pegarules.generation.internal.assembly.FUAManagerImpl.get(FUAManagerImpl.java:1056)
at com.pega.pegarules.generation.internal.PRGenProviderImpl.get(PRGenProviderImpl.java:219)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3402)
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:620)

Steps to Reproduce



RuleNotFound exception on screen when the Wrap-Up of the Interaction was performed.

Root Cause



Rule Not Found: Rule-Obj-Activity @baseclass.CloseWorkItem

For diagnosing the issue, end users were unable to provide the Fiddler trace or Tracer dump for the non-working scenario. In the working scenario, this activity was not called however in the non-working scenario, an unexpected call was made to this activity CloseWorkItem.


Resolution



Local-change was proposed which helps overcome issue - create an activity (CloseWorkItem) with applies to class as @baseclass in the custom application ruleset with authenticate unchecked and “May Start” option checked. This activity would have no steps and do nothing -- it merely stops the error from breaking the flow.

Published January 31, 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