We encountered a bug today, with an existing scrip...
# suitescript
s
We encountered a bug today, with an existing script that has been working for years in another account. It was migrated to ours and ran for the first time, and produced an error: TypeError: Cannot find function selectLine in object standard record. specifically in the following code:
Copy code
var subscNew=record.load({
    type:record.Type.SUBSCRIPTION,
    id:subId,
    isDynamic:true
});
...
var priceline=subscNew.selectLine({sublistId:'priceinterval', line:0});