Support Article
Error messages are not cleared on switching a flow action
Summary
Error messages are not cleared on switching a flow action.
Error Messages
Not Applicable
Steps to Reproduce
- Configure an assignment with primary and secondary flow actions
- Add a few fields to the primary flow action
- Validate the fields for a certain condition and set an error message on submit of the flow action. The same flow action populates back with an error message
- Switch to the secondary flow action. The error messages continue to display on the screen. The pre-activity does not execute
Root Cause
An issue in the custom application code or rules. The pyWorkActionsReview menu is used in the Perform harness instead of pyWorkActionsPerform. The parameters set in the pyWorkActionsPerform menu causes ProcessAction to be invoked and the page messages are cleared if param.KeepMessages is False.
Resolution
Perform the following local-change:
Use the pyWorkActionsPerform menu in the Perform harness.
Tags:
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.