Tuesday, April 16, 2019

SuiteScript > Delete an Item Group on Item Sublist on a Record Throws error 'You cannot delete the end of group line. You must delete the group '

SuiteAnswers article 19378 -'Remove all sublist line items in a record using SuiteScript' allows to delete line items on an item sub list on a record, but when the record has item groups along with other items, you might get the error ''You cannot delete the end of group line. You must delete the group' .

On an item group record (Lists > Accounting> Items > Select the Item Group > Purchasing/ Inventory tab > Components sub tab), uncheck the Reference Start/End Lines on Picking Tickets checkbox. This removes the End of Group line item that is added to an item group when an item group is added to an item sub list on a transaction record. 

Perform the steps provided in SuiteAnswers article 'Remove all sublist line items in a record using SuiteScript ', this should now be able to delete all the items successfully.

No comments:

Post a Comment