This generally happens when the journal is included in the VAT return or the accounting period is locked for that period.