Hello Team, I need your help with the following q...
# suitetalkapi
a
Hello Team, I need your help with the following question. In NetSuite, the client created an Invoice. The Invoice is opened (unpaid). Then, using API, my application received this Invoice. I mean NetSuite returned the Invoice via API. After that, using API I created a payment with allocation to this Invoice. But, NetSuite API returned me the following errors: <platformCore:message>That record does not exist.</platformCore:message> Unable to find a matching line for sublist apply with key: [doc, line] and value: [....] What can be the reason why NetSuite cannot find the Invoice that is active in NetSuite? Unfortunately, I cannot open the client's account to try to create a payment with allocation to this Invoice and check.
b
use the initialize operation to prepare your payment
a
I don't have access to the client's account to check it
b
you need to initialize in general then you can properly catch when the invoice is missing
or if it is present, then you can properly match the key