Recently we started getting this error when trying to update customer deposits with some non-GL changes in open periods.
We have been doing this same process for years without this issue coming up. We have a scheduled script that goes to Braintree and gets the disbursement date and reconciliation data and sets it on the customer deposit.
All of a sudden we are getting this error 'THIS_CUSTOMER_DEPOSIT_IS_ALREADY_APPLIED_YOU_CANNOT_MAKE_ITS_AMOUNT_LOWER_THAN_THE_APPLIED_AMOUNT" on some, not all deposits. I have tried to update the deposits manually and an unexpected error gets thrown.
Later the same deposit will be able to update even though nothing has changed.
Also, the sales order, deposit, invoice, and deposit application are all equally and fully applied. Nothing is changing in the deposit application