script error on purchase order entry
Hi, we’re getting an error when we try to manually create new purchase orders:
An unexpected error occured in a script running on this page
customform (postSourcing)
js_exception
sss_missing_reqd_argument CurrentRecord.setCurrentSublistValue: missing a required argument: value
I’ve turned off any deployed scripts for the Purchase Order record but we keep getting the same error.
How can we find out what sublist field and value is missing? And how can we know which script is running?
Check the “Custom Code” tab of the Custom Form definition; there may be a script attached to the Form itself, which is what I am inferring from the `customform (postSourcing)` line of the error message.
Whatever that script is doing during the postSourcing
event, it is attempting to set a sublist column with a nullish value.
thanks, I was able to track down the issue and the field source for the script is now mandatory and has a default value as added insurance