Raise Exception not Cancelling Method

I have a BPM in Kinetic 2023.2 that is supposed to check for quantity entered in the Material Request Queue. I’m firing on Post-Processing of the OnChangeTranQty method. It correctly picks up that the quantity entered is more than the quantity of the queue and will throw a message or BPM Data form. However, regardless of what I do, the quantity does not revert back to what it should have been. It just keeps the quantity entered. I’ve tried manually setting the value back to what it should have been and raising an exception. In both cases, the change still happens. It will revert back for a split second but then still change yet again in the blink of an eye back to the quantity we don’t want to accept.

Is there some bug in this method? Or in the raising of an exception?

For grins and giggles I did the same thing in 2021.2 and it will revert back to the original queue qty like I would expect. Then, for more chuckles, I did it in the browser in 2021.2 and found it does not revert back to the original queue qty. So I think the issue is that the browser behaves differently than the client application.

Any reason you’re running this ad a post processing method instead of pre processing? I find data validation and roll backs work better in pre.

1 Like

Honestly, that’s a great point. I will try pre-processing.

Still does it with pre-processing, unfortunately.

How are you throwing the exception?

I ended up switching the method. When I put it on PerformMtlMovement or something like that - it did what it was supposed to do. I was throwing exception if user selected No from a BPM Data form. They get the choice if they want to proceed or not.

1 Like