```You have entered an Invalid Field Value 8004 fo...
# suitescript
r
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
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
subRec.getCurrentSublistValue({sublistId: ‘inventoryassignment’, fieldId: ‘issueinventorynumber’}) ‘8004’
r
Use a string. inventoryNumber.toString()
I just ran into this myself.
r
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.