If an INVOICES module crashes for any reason, follow this rule:
When you start an INVOICES module after a crash, the same user must be logged in to Windows as when INVOICES crashed.
If a different Windows user starts the INVOICES module, objects that are locked in the database will not be unlocked. In this case, close the INVOICES module, log the original user in to Windows, and start the INVOICES module again.