Hi! will getLineCount ever return negative?
# suitescript
e
Hi! will getLineCount ever return negative?
b
yes, invalid sublists have negative counts
e
what is an invalid sublist?
an empty one returns 0
b
the sublist with an id of x is invalid
there is no sublist with the id x
e
so some instances will not have the sublist at all, even though most of these records do have that particular one?
b
you havent shared enough information for me to answer that question
i know neither the record nor the sublist
e
the 'customer' record has a 'contactroles' sublist. But, you are some customers do not have it?
b
you should be able to see that behavior on the customer record you are failing on
take a look at it in the ui and look for the contacts sublist
e
right, but i dont have access to that particular record in prod, but thanks! AS long as i know it will be only negative and nothing else?
b
invalid sublists have a line count of -1
e
right, thanks!