Sage 100: Sales Order Invoice Batch In Use
A Sage 100 sales order invoice batch says IN USE after a crash and won't open? Release the orphaned lock file and Master Console task — full steps here.
A workstation crashes — or simply dies — while someone is working in Sales Order Invoice Data Entry. When they come back, the batch they were in reports that it is IN USE, and Sage will not let anyone open it or update it. Nobody is in the batch. Restarting the user's own PC does not help, and the batch can sit locked for days while invoices pile up behind it.
Here is the key to the whole problem: Sage does not flag an invoice batch as in use with a status field in the batch record. If you go digging in GL_CompanyActiveBatch.m4t you will find a batch status field sitting blank for every batch, locked or not — it is a dead end. The lock is a Windows file lock on a small lock file, and that is where you have to clear it.
The fix
- Confirm the user who crashed is fully out of Sage 100 — signed out, not just disconnected with a session still alive on the server.
- Open Library Master > Main > Master Console and look for a leftover task tied to that user and to the invoice register or batch, especially anything sitting in a Print/Update state. Terminate that task in Master Console. In many cases this alone releases the lock and the batch frees up immediately.
- If the batch is still locked, go to the server and find the lock file: in the MAS90\LOCK folder, in the subfolder for the company code (the folder name starts with an underscore), look for a file named SO01 followed by the batch number, with an .LCK extension — for example SO0103697.LCK.
- If the file will not delete or rename because it is still open, run Microsoft Process Explorer on the server, use its Find feature to search for the lock file name, note the process holding it, and end that process in Task Manager.
- With the hold released, delete the .LCK file, or rename it (for example to a .BAK extension) if you prefer to keep it.
- Go back into Sales Order and check the batch in Daily Sales Reports/Updates or Invoice Data Entry. Once the lock is gone the batch normally shows as Available again and can be selected and updated — no separate status reset is required.
- Review the batch contents carefully before updating. A batch that was mid-print or mid-update when the workstation died should be checked invoice by invoice against your shipping paperwork.
Why the Master Console step comes first
Deleting files while a Sage task still holds them simply fails — Windows tells you the file is open in another program and refuses. The hung task is the cause; the lock file is only its footprint. Kill the task and the footprint usually removes itself. Only chase the file directly when no task remains and the lock persists, which typically means a server process or a stuck session is holding the handle.
The GL_CompanyActiveBatch record — when it does matter
There is one situation where that file matters: when invoice data entry files have to be reinitialized after serious damage (Sage KB 18235 covers the Sales Order procedure). In that case the stranded batch record must also be deleted from GL_CompanyActiveBatch using Data File Display and Maintenance — the key is built from the module code, batch type, and batch number — and the Sales Order sort files rebuilt afterwards. That is a destructive, backup-first procedure for corrupted data entry files. A simple crashed workstation does not call for it; do not reinitialize files just to clear a lock.
Affected versions
Seen from MAS 90 v4.3 and MAS 200 v4.4 through current Sage 100 releases — the lock-file mechanism has been the batch-locking method across all of them, so the recovery steps are the same. Folder paths use MAS90 in the classic layout; newer installs keep the same LOCK structure under the Sage 100 application folder.
If the fix doesn't work
- Wait until everyone is out of Sage and try renaming the lock file then; end-of-day, with all sessions closed, is when stubborn locks let go.
- As a last resort, reboot the Sage server at a scheduled downtime. A reboot releases every file handle without exception — effective, but plan it rather than surprising the whole office.
- If the same batch locks repeatedly without a crash, suspect the workstation or its network connection: dropped connections during invoice entry orphan locks the same way crashes do.
- If the batch shows in Print/Update and its register was partially updated, do not just delete things — get the batch status and the Daily Transaction Register reconciled first, or you risk double-posting.
Prevention
- Teach users: after any crash or freeze inside invoice entry, tell whoever supports Sage before re-entering. Five minutes in Master Console beats a day of detective work.
- Keep workstations and their network connections healthy on the shipping desk; most orphaned locks start life as a dropped session, not bad data.
- Never power off a workstation that appears frozen during a register update without checking Master Console first — that is precisely how Print/Update orphans are made.
Related help
- Sage 100: Sales Orders Disappearing
- Sage 100: Daily Transaction Register Hangs
- Sage 100: Link Maintenance Painfully Slow
- Sage 100: SO Totals Incorrect v2020
Still stuck? Send us a screenshot of the error, we will diagnose it for free.
Digit Masters has supported Sage 100 and Sage 300 since 1997. Send the screenshot through our contact page or to contact@digitmasters.com, or call (800) 965-4262.