https://netsuiteprofessionals.com logo
r

reptar

03/23/2022, 2:15 PM
Copy code
You have entered an Invalid Field Value 8004 for the following field: issueinventorynumber
The inventory number does exist and is in the testing location.
b

battk

03/23/2022, 2:17 PM
go make the inventory adjustment in the ui
then inspect it in script to see what values you need to set in the fields
r

reptar

03/23/2022, 2:49 PM
subRec.getCurrentSublistValue({sublistId: ‘inventoryassignment’, fieldId: ‘issueinventorynumber’}) ‘8004’
r

Robert Vice

03/23/2022, 2:57 PM
Use a string. inventoryNumber.toString()
I just ran into this myself.
r

reptar

03/23/2022, 3:25 PM
Resolved. I had the wrong item specified in my test data. Then I was getting Transaction is not complete. I added the account, and it works now.