RE: Suitescript Error: Invalid item reference key
Hi, I am trying to use record.setCurrentSublistText as setting an item in a sublist line item and it always give me this kind of error “Invalid item reference key” though the item name that I set is correct and no longer sure why is that error occuring?
Is the record loaded dynamically?
Has the customer/subsidiary been set already?
Is the item a child (may need to include the parent : child)
Is there a item filter on the form?
Why are you setting the text value? Always better to set the internal id of the item with setCurrentSublistValue)
I am facing issue while creating return authorization of sales order suing suitelet. the error is “Invalid item reference key 27211 for subsidiary 9.”
the item is service item with parent subsidiary with “inclide children” checkbox checked. the customer for which the Rth is being created is of child subsidiary.