When you import the payment journal line settlement using the ‘Payment journal line settled invoice’ data entity, some fields (eg. LedgerJournalTrans.SettleVoucher) are not filled in as expected. This may result in an error when you try to post the lines.
Workaround: You need to open and close Settle transaction form for each of the journal line with settlements.
From this change onwards settlevoucher field is update when imported through data entity and we can post the customer and vendor payment journal without error.