Create accounting in AP is going into Error
After reconciling a payment Cash Management , the create accounting in AP is going in to error.
Message Number:95340
Message:The total debits and the total credits do not balance for this subledger journal entry. Please ensure that the application accounting definition GL_AAD owned by User contains journal line types for the event class Reconciled Payments and event type Payment Cleared that can create a balanced entry. Also verify that any conditions associated with a journal line type are correct.
Basically the gain/loss accounts are not coming in the JE, that's why the mismatch is coming.
Can anyone Please help!