title: NetSuite SOAP API update Opportunity line items
body: <p>I am trying to update NetSuite Opportunity line items via SOAP API (<a href="https://webservices.sandbox.netsuite.com/wsdl/v2012_1_0/netsuite.wsdl" rel="nofollow">https://webservices.sandbox.netsuite.com/wsdl/v2012_1_0/netsuite.wsdl</a>).</p>
  
  <p>In NS opportunity line items are setup as a group. When I try to update the line items, I am sending one item via SOAP API with the internalId that matches that group.</p>
  
  <p>The only use case that is not working is when Opportunity already has line items. In that case, NS is returning the message: "USER_ERROR You cannot delete the end of group line. You must delete the group."</p>
  
  <p>I also do not manage to delete those items by sending the empty items list. NS is returning the same error message as above.</p>
  
  <p>Any help is greatly appreciated!</p>