@Hubert That error means that one of your items in the Fulfillment is either a Serialized or Lot Numbered Item. For those types of items, the Inventory Detail subrecord is required. This means you will need to create the subrecord in your script before you save your Item Fulfillment.