Dear YOG
Thank you for posting this issue to our community.
The clean ledger entries will not clear the generaljournalentry/generaljournalaccountentry records if those exist for your legal entity. Was this legal entity ever used for consolidations? Do you have any data in generaljournalentry/generaljournalaccountentry for this legal entity?
As I understand from above the legal entity was set for consolidation then you switch this off and now you are trying to post an invoice journal receiving error
'It is not possible to post to the consolidated company account XXX'
Can you please run this query and confirm that what you see in the form (control for consolidation switched off) is the same what it is in the database
select * from OMLEGALENTITY where LegalEntityID='XXXX'
Check the values for UseForFinancialConsolidationProcess and UseForFinancialEliminationProcess. If switched off, both should be zero.
Looking forward for your next update.