I’m working in a requirement where the customer would like to execute the Material Queue transaction if the scanned part is valid for the Process ID (after scanning the part I need to mimic the click on OK button). I got the native reference to execute the PerformClick for the OK button but after running it I got the below error.
When changing the part the event is executed twice by standard, I have tried to validate this to only execute the click logic once but I wasn’t able to avoid the error.