It may not be the quickest solution, but could be helpful to assign each item an integer ID as a Primary Key, and have the QR codes populate that integer (if this is something you can do/change). I have an app set up in a similar manner and have not had this issue, wondering if the omission of a string as the variable will help.