Throwing Exceptions and escaping error messages

I am building an invoice processor following the REFramwork, for a piece of legacy software.

The user wants to return a business exception when the software flags an issue with the data being logged. These errors also prompt an embedded pop-ups with different actions (ie cancel, ignore) but will not clear itself. This causes a problem for the next Transaction item in the REFramework as it has not returned to the search menu where the process begins.

Anyone know how to clear the pop-ups to get back to the right menu?

Hi @LewisHenderson,
I’m not sure if I got it right but I guess you should build additional part which will check for such existing popups and close them based on selector or something.
You can try for example with element exist activity.