type: "error.SuiteScriptError",
name: "VALID_LINE_ITEM_REQD",
message: "You must have at least one valid line item for this transaction.",
Error has been resolved by adding the default value (inventory location)
var itemFulfilmentObj = record.transform({
fromType: "salesorder",
fromId: salesOrderId,
toType: "itemfulfillment",
defaultValues:{inventorylocation:location}
});