NetSuite Script Error: SPOS Sale: Warning on silent delete of Sales Order (used for tax calculations) - Please remove SPOS-DELETE-ME. Transaction TRAN_IN_USE

NetSuite Script Error: SPOS Sale: Warning on silent delete of Sales Order (used for tax calculations) - Please remove SPOS-DELETE-ME. Transaction TRAN_IN_USE


This is specific to the Sales Order Module and when Avatax is Enabled. In order to determine the Tax before checkout, the system has to temporarily write a Sales Order and then remove it. Sometimes it may not be removed due to other issues such as another processes creating Fulfillment or Payment transactions.
These records (Sales Orders with POS Trans # set to SPOS-DELETE-ME) need to be manually deleted; they are temporary orphaned records.  One of the major causes of this is when NetSuite's Advanced Order Management module is being used and Fulfillment Requests are being created automatically based off Shipping or Pickup Orders.  This automation needs to be turned off (if Sales Orders entered default to 'Pending Fulfillmnet").  Alternatively, Sales Orders could be set to "Pending Approval" and the Sales Order Approved checkbox for Shipping and Pickup Orders set to True.