Would this be a data type issue or is NS telling m...
# suitescript
c
Would this be a data type issue or is NS telling me the lot number is wrong?
b
Usually invalid internal id. The error is telling you that your internal id doesnt match a valid select option
c
Not sure what other value I could use?
b
Try creating whatever transaction in the ui and making sure that the serial/lot is an available option
c
I just did - the internal ID was different
so I deleted the manual transaction and hardcoded that internal ID
same error
with a list field, I should always be passing the internal ID right?
CSV import allows more flexibility
I'm actually pulling the lot number from an item receipt and trying to set the same lot number on the inventory adjustment to decrease the inventory from that lot
b
You can try using setText. But i doubt that will help. Your error is saying that your internal id is not a invalid choice. Using the text of the lot/serial doesn't make your option more valid
c
yeah - this is likely some deep functional NS issue
I don't see why taking the value from teh receipt wouldn't be valid
b
Generally make sure that the line on the transaction you are working on is committed and that the lot you are using is available
c
check and check
I've got a veteran NS person sat next to me saying this makes no sense
🤷‍♂️
b
What does the code look like
c
Internal ID is different everytime you save
that's why