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?