I'm working on an event handler to approve a price change in a customer order line. It has a 2-step approval, after the first approver approves it, a new prompt is sent to the sales manager of the order and to another approver. I'm setting the prompt with a Plurality rule and a minimum of votes to wait for both approvers, however after one person approves or rejects it, the prompt expires for the second person and I get an "Object reference not set to an instance of an object." in the Event Handler Status form.
I already tried with several settings as Majority rule and Quorum, or sending a Cc to the second person instead of 2 recipients in the To field, but I get the same error everytime.
These are my prompt settings and the action next to the prompt one:


The documentation says you need a VOTINGTIE function to handle the result of the prompt but I don't know if this is the right way to implement it. Sadly there isn't a single example of this and all the Infor handlers use an "Earliest Response" rule so they're useless for my case.
Am I missing something?