Training
Module
Manage users and implement security in Dynamics 365 Business Central - Training
Learn how to manage users and implement security in Business Central.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article provides a solution to an error that occurs when you delete a user record that is stuck in the User Activity window.
Applies to: Microsoft Dynamics GP
Original KB number: 849240
When you try to delete a user record that is stuck in the User Activity window in Microsoft Dynamics GP, you receive the following error message:
Get Change Operation on SY Current Activity Record Was Already Locked
To resolve this problem, delete the record that's associated with the stuck user from the ACTIVITY
table by using Microsoft SQL Server Management Studio.
To delete the record from the ACTIVITY
table, follow these steps:
Determine the user ID of the user who is stuck by viewing the User Activity window.
To do this, on the Microsoft Dynamics GP menu, point to Tools > Utilities > System, and then select User Activity.
On the computer that's running Microsoft SQL Server, start SQL Server Management Studio.
Select Start.
Select Programs.
Point to Microsoft SQL Server, and then select SQL Server Management Studio.
Note
The Connect to Server window opens.
In the Server name box, type the name of the instance of SQL Server.
In the Authentication list, select SQL Authentication.
In the User name box, type sa.
In the Password box, type the password for the sa user.
Select Connect.
Make a SQL backup copy of the ACTIVITY
table by running the following script.
SELECT * into DYNAMICS..ACTIVITY_BAK from DYNAMICS..ACTIVITY
Run the following script against the DYNAMICS
database.
DELETE DYNAMICS..ACTIVITY WHERE USERID = '<XXX>'
Replace <XXX> with the user ID that you want to remove. For example, run the following script:
DELETE DYNAMICS..ACTIVITY WHERE USERID = 'John'
Start Microsoft Dynamics GP.
After you verify that the user was removed successfully from the ACTIVITY
table, and you can log in successfully, run the following script to drop the backup table that you created in step 3.
DROP table DYNAMICS..ACTIVITY_BAK
Training
Module
Manage users and implement security in Dynamics 365 Business Central - Training
Learn how to manage users and implement security in Business Central.
Documentation
Describes the steps to change the Dynamics.set file to stop third-party products from starting when Microsoft Dynamics GP is started.
Error message in the Sales Transaction Entry window - Dynamics GP
This article provides a resolution for the problem that occurs when you try to access, to enter, to save, to print, or to post transactions in the Sales Transaction Entry window in Microsoft Dynamics GP.
Remove and delete an EFT batch - Dynamics GP
Describes how to delete an EFT batch before you create an EFT file for the bank.