Error
{
"type": "error.SuiteScriptError",
"name": "MUTUALLY_EXCLUSIVE_ARGUMENTS",
"message": "Can't use mutually exclusive arguments..."
}
Root Cause
setSublistValue was called without a required line parameter.
recordObject.setSublistValue({
sublistId: "item",
fieldId: "custcol_myfield",
value: results[guid]
});
Fix
Provide the target line index (or line key path, depending on your implementation) when setting sublist values.
recordObject.setSublistValue({
sublistId: "item",
fieldId: "custcol_myfield",
line: lineIndex,
value: results[guid]
});