I am getting the following error when trying to bi...
# suitescript
s
I am getting the following error when trying to bill a Purchase Order in the Pending Billing status via Suitescript and cannot figure out what it means. Has anyone seen this error before/knows how to fix it? When I click the Bill button in the UI it seems fine. The PO should be billable...
Items you have requested in the record have been deleted since you retrieved the form
b
netsuite probably thinks you are trying to do an action that is not possible
whatever you are doing in script should not be possible with the record as is
you can try sharing what your code looks like, but this type of error usually is as hard to work with as unexpected errors.
s
@battk yea the issue is the script works fine 99% of the time, so I'm not sure what's different about these particular POs that isn't letting them get billed via the script. Thats why I was hoping someone might have seen it before and known what might be causing it. I'm going to try and dig deeper and see exactly which call is throwing the error.
b
i would guess its when you save the record
s
same, which of course tells me nothing
b
if you dont make any changes to the transformed record then it might be a missing default value
s
I do make changes though, I even add a charge to the bill. But I did notice that the Sales Order has an invoice attached to it already, although the PO is still pending billing. I'm wondering if thats the reason