I'm having an issue with the script in attachment. For some reason I get as a result (the SKU exists multiple times in your database) while in truth the SKU only exists 1 time.
Even when I delete the SKU in the product::SKUNumber field it still gives that error.
However when I perform the find manually it works perfectly. It finds 1 record.
Can anyone help me try to understand what I am doing wrong here?
The field CameraBarcodeSearchiPad is set to global field.
And I have a relationship between Products_InvoiceDetails and Products.
All help is much appreciated!