Error message when you perform the Inventory year-end close in Microsoft Dynamics GP: "You cannot complete this process while invoices are being posted"

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:

  1. Make sure that all users exit Microsoft Dynamics GP.

  2. Make a complete backup of the DYNAMICS database and of the company databases.

  3. Start SQL Query Analyzer. To do this, click Start, point to All Programs, point to Microsoft SQL Server, and then click Query Analyzer.



  4. Log on as the sa user.

  5. Click the tempdb database in the database list.

  6. Run the following statement.

    delete DEX_LOCK
    delete DEX_SESSION
  7. Click the DYNAMICS database in the database list.

  8. Run the following statement.

    delete ACTIVITY
    delete SY00800
    delete SY00801

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×