Error when trying to update an Item Fulfillment record in NetSuite, with changes to item lines

I am trying to update an existing Item Fulfillment record in NetSuite. If I only map header fields, the update is successful. When I try to update the lines, I get the error below:

Failed to create, update/transform record because You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist. Tip: Please make sure that all the line items that you're trying to use exist on the record

I am using the Line ID as with "Use as a key field", and trying to update the Item : Quantity and Item : Quantity Remaining.

Hi Jim,
Qty remaining isn't a writable field. Have you tried just updating the qty?

Yes, I have tried updating just the quantity, and also just the description. It seems like the entire item lines list is read-only, and the only thing that I can get to work is a replace all.

Hello @Jim_Clarke

  1. Please check if the line ID is properly mapped in the first place.
  2. Please check your JSON and make sure the Item array have only those items details, that can be fulfilled in NetSuite in the first place.