#GPPT Automatic Logout Not Identifying Activity and Logging Out

David Meego - Click for blog homepageWe get reports every now and then of a user being logged out of Microsoft Dynamics GP by the GP Power Tools Automatic Logout feature even though they have been active on GP within the timeout period.

This happens because there is no way to track “Inactivity” in Microsoft Dynamics GP, so instead we attempt to track “Activity” by triggering on common events/scripts within GP and resetting the last active time and date.

However, there are times when a user could be active in GP and manages to avoid invoking any of the actions that would be identified as “Activity”. When this happens, they can be logged out incorrectly.

The behavior of Automatic Logout is explained in the following article:

Common tasks that are picked up by GP Power Tools include opening new windows or swapping between windows. It also includes checking for record notes. This will pick up almost all activity within Microsoft Dynamics GP and also in Dexterity based Add on products.

If a user stays on a single window and does not move out of that window and does not change a record that would check for a record note, it is possible that no activity will be detected. Then unless they are in front of their screen for the final minute when the Automatic Logout dialog is displayed, they will be logged out.

If this situation occurs for you, once the window is open, please use GP Power Tools to capture logs of the activity we want to capture. If there is Dexterity code executed, you can use the Developer Tools module to trigger after this code (Focus Event, Procedure or Function) and call the Automatic Logout reset script.

GP Power Tools Trigger code (in context of GP Power Tools)

call MBS_Auto_Logout_Timed_Process_Reset;

If there is custom code written in Dexterity, it can call the same script across dictionaries to reset the last activity.

Dexterity code

call with name "MBS_Auto_Logout_Timed_Process_Reset" in dictionary 5261;

If there is custom code written in Visual Studio, it can invoke the same script to reset the last activity.

Visual Studio Tools code


Another manual solution is for the user to click on a different Dexterity window every now and then to reset the activity date and time themselves.

For more information on managing your user licenses see:

For more information see:

Hope this is helpful


This article was originally posted on http://www.winthropdc.com/blog.

Please post feedback or comments

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.