Discussions
Suite script error "You cannot edit the end of group line" for line item scripting on tran
So I have written a workflow action script which is attached to two workflows - one for Opps and one for Estimates and SOs. The workflows are identical, and they share the script. The relevant part of the script for this conversation is:
var type = nlapiGetCurrentLineItemValue('item','itemtype');
if (type == 'EndGroup') continue;
So here's the weirdness - when creating transactions with item groups, I get the dreaded "You cannot edit the end of group line" error on opportunities, which repeats two or three times (for each api I'm assuming), per group, then the record saves anyway. I don't get the error on estimates or opportunities, either created from the opp or standalone, with item groups.