Hello, I have a script that keeps on throwing the...
# suitescript
p
Hello, I have a script that keeps on throwing the error: SSS_MISSING_REQD_ARGUMENT CurrentRecord.setCurrentSublistValue: Missing a required argument: value. I do not see a setCurrentSublistValue function without a value being set. What should I be looking for?
t
log out the value and typeof for every value you are setting in the script before you set it to make 100% sure none are null or undefined
e
^this.
Copy code
console.log('variableOfItemValue', variableOfItemValue);

currentRecord.setCurrentSublistValue({
    sublistId: 'item',
    fieldId: 'item',
    value: variableOfItemValue
})
s
i would look for a typo honestly, like
Value
vs
value
p
I have tried that but I do not see an issue
it looks like this error may have started after the new release
t
might be an error from another script. What is the script type you are seeing the error in?
p
its a client script
I have logs going back a month and the error aligns with the new release