Payment Journal problem

Dynamics AX 2012 R3
I am creating records in the table LedgerJournalTrans in a program.
This is creating a 'Vendor payment' journal.

I just open the form, and for the records that I create, in the form LedgerJournalTransVendPaym gives this warning:
 Voucher CNCRPAY-000007 cannot be changed or deleted when a check has been printed.
This is on the initial opening of the record.

This is being generated by the leaveRecord() method on the data source.

If I press CTRL-F5 (Restore), I can get past this error.

I cannot figure out why the form thinks the record needs to be written when first opened.
Anyone else seen or experience this behavior?