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

Local Action Context Lost: Failed to find a 'RULE-OBJ-FLOWACTION



User has a section configured that uses an autocomplete to allow for easy selection of data.

The section also offers a local action that runs an advanced search in a modal window to populate the same data.

When the autocomplete is populated with data that returns no matches then when the icon is clicked to invoke the local action an error is seen. If the error window is closed and the icon clicked again no error is seen.

If the autocomplete has results and the result is selected the local action is presented as expected.

Additionally the issue is coming only if the embedded section property contains the refresh section with an embedded data transform.

Error Messages

The following errors are present in the logs: PRRuntimeError
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(
at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
Caused by: Failed to find a 'RULE-OBJ-FLOWACTION' with the name 'MYFLOWACTION' that applies to 'MYCUSTOMRULESET'. There were 2 rules with this name in the rulebase, but none matched this request. The 2 rules named 'MYFLOWACTION' defined in the rulebase are:
2 unrelated to applies-to class 'MyCo-Div-Work-Item', for example: 'MyCo-Data'.

at com.pega.pegarules.generation.internal.vtable.ruleres.VirtualTableResolver.throwDetailedRuleNotFoundException(
at com.pega.pegarules.generation.internal.vtable.ruleres.VirtualTableResolver.resolveToContainer(
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.doAction(
at com.pegarules.generated.activity.ra_action_runflowactionactivity_d344e637b519ce6d6c08bec32dfc87ad.step3_circum0(
at com.pegarules.generated.activity.ra_action_runflowactionactivity_d344e637b519ce6d6c08bec32dfc87ad.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(
at com.pegarules.generated.activity.ra_action_performpreprocessing_09a325f67bf9b651644b077408ec0712.step10_circum0(
at com.pegarules.generated.activity.ra_action_performpreprocessing_09a325f67bf9b651644b077408ec0712.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(
at com.pegarules.generated.activity.ra_action_processaction_ecfb18bfff74b732e0d3ef9acc18243a.step18_circum0(
at com.pegarules.generated.activity.ra_action_processaction_ecfb18bfff74b732e0d3ef9acc18243a.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(
... 59 more

Steps to Reproduce

1. Create a section in a data class with an autocomplete defined and a local action via an icon.
2. Embed this section on a work item level section using the "Using page" functionality.
3. Ensure that the embedded section property contains the refresh section and in that there is a data transform.

Root Cause

A defect in Pegasystems’ code or rules :
The issue is caused by a basereference calculation on stale element that got refreshed due to refresh section on autocomplete.


Perform the following local-change:

Avoid basereference calculation inserting "Using Page" in LocalAction configuration.

Published March 17, 2018 - 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