BPM to change part number

We have identified when using KanBan Receipts on a handheld it is unable to translate a barcode with our UPC code to our actual part number. Even with setting up an internal part cross reference the results were the same. We found out from Epicor this functionality does not exist for the KanBan Receipts on the handheld. So we set out to write a BPM on the Method KanBan Receipts.ChangePart and almost have it working. Problem is when we scan the UPC code it returns a message box of Record not found but after clicking OK on the error then the correct part number appears. Is there any way to get rid of the error box? The bpm is attached to import to see how it is setup.

xreftopart.bpm (45.6 KB)