Error codes can be looked up in FileMaker help. 101 means "record is missing". Did you have any records in your found set at the time you tried to use insert from device? Was the field into which you were inserting from a related table and might there be no related record in that related table?
413 means "Specified field has inappropriate field type". Normally, one uses insert from device to scan a barcode into a text field or to capture an image of the barcode in a container field.
Into what type of field are you inserting data with this script step?
It is a text field that I am using in the insert from device script step. I have tried using a global or non global field.
Yes, I confirmed that I had a found set. My understanding is this was a global field, it should not matter if I am grabbing data from a related table or not. I have also tried this with a non global field on the table my layout is based on, and I still get error 413.
Yes but what is the data type for your global field? And is it present on the current layout with browse mode access permitted at the time Insert from device is executed to insert the barcode into it?