With "INTERCOMPANY CROSS-SUBSIDIARY FULFILLMENT" turned on I run this code...
var objIF = record.transform({
fromType: 'salesorder',
fromId: soID,
toType: 'itemfulfillment',
isDynamic: false
});
var _ifID = objIF.save({enableSourcing: false, ignoreMandatoryFields: true});
and get this error...
"You must have at least one valid line item for this transaction."
I can regenerate the error in UI if I delete this from the url on the "to Be Generated" page . "&inventorylocation=303"