Error when transforming Sales order to item fulfillment

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}

            });

Leave a comment

Your email address will not be published. Required fields are marked *