System.ObjectDisposedException: Cannot access a disposed object.

When performing any Stock/Inventory related transaction, i.e. Transfer, Issue, Receive, the error System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Transaction'. is logged to the computer event log.

This problem is caused because an error occurred when saving the stock movement record.  This is usually caused by the computer assigning an incorrect ID number to the transaction.  The Id for all transactions are taken from the KeyTable table in the database.  If the number in here is too low, a duplicate Id will be generated. 

To resolve the problem, increase the number in the KeyTable table to a number higher than any Id used in all tables in the database. This will prevent a duplicate Id being created.

Article ID: 17, Created On: 8/25/2010, Modified: 8/25/2010

Comments (0)