Netsuite Deposit Applications

I'm trying to upload a deposit application but I keep getting the same error.

Mapping:

Error:

Failed to create, update/transform record because You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist. Tip: Please make sure that all the line items that you're trying to use exist on the record.

Request Log:
r = NRecord.create({"type":"depositapplication","defaultValues":{"recordmode":"dynamic"}});
r.setValue({"fieldId":"externalid","value":"a1RWI000002MtMT2A0"});
r.setValue({"fieldId":"deposit","value":10822});
r.setValue({"fieldId":"customer","value":3279});
r.setValue({"fieldId":"subsidiary","value":4});
r.setValue({"fieldId":"aracct","value":1004});
r.selectNewLine({"sublistId":"apply"});

I tried hardcoding the subsidiary and the customer even thogh they are inherited from the deposit (Application Of). I have no issues creating this exact same application from the UI on Netsuite.

What am I doing wrong?

Hi Facundo,

I'm just replying with what helped fix this concern on our ticket:

Instead of Application of (Internal Id), we used the Created From.

Marked the Use as a key field to find existing lines checkbox.

Upon testing, it worked and created the Deposit record in NetSuite.

Thank you for your time and effort in troubleshooting this with Celigo Support!