Symptoms
When you perform the year-end close in Inventory Control in Microsoft Dynamics GP or in Microsoft Business Solutions - Great Plains, you receive the following error message:
You cannot complete this process while invoices are being posted.
Cause
This problem occurs if a record is locked in the DEX_LOCK table or in the DEX_SESSION table in the tempdb database, or in the ACTIVITY table, in the SY00800 table, or in the SY00801 table in the DYNAMICS database.
Resolution
To resolve this problem, delete the locked records from the tables. To do this, follow these steps:
-
Make sure that all users exit Microsoft Dynamics GP.
-
Make a complete backup of the DYNAMICS database and of the company databases.
-
Start SQL Query Analyzer. To do this, click Start, point to All Programs, point to Microsoft SQL Server, and then click Query Analyzer.
-
Log on as the sa user.
-
Click the tempdb database in the database list.
-
Run the following statement.
delete DEX_LOCK
delete DEX_SESSION -
Click the DYNAMICS database in the database list.
-
Run the following statement.
delete ACTIVITY
delete SY00800
delete SY00801