Announcements
Hello,
The issue we are facing is that, when trying to login to the MS Dynamics GP Client (Desktop application), the number of current users is displayed as a wrong/greater number, than the number of users actually logged in.
For instance, when trying to login, the login screen shows 11 current users -
Whereas, the number of active users in DYNAMICS..ACTIVITY shows the count as 7.
Same is the count when user activity is checked from - Tools --> Ultilities --> System--> User Activity.
Can anyone tell me why is this behavior observed.
The Current Users count is showing a misleading number and our users are getting puzzled.
Looking forward to some help.
Thanks!
Thanks David, with your query, we could delete the stranded users and free up the licenses.
Thanks a lot David,
Your response is very helpful.
I see that the view smUsersLoggedIn has 10 users with user type 1 (I believe, this is where no. of current users is fetched in the login screen).
But the Activity table has 7 users logged into the desktop client.
I believe the extra users should be deleted from the view - smUsersLoggedIn
Can you please confirm on this?
Many thanks!
I checked the source code and the number is returned by the smGetLoggedInUserCount stored procedure which is counting records in the ACTIVITY table, but is going through a view.
select count(*) from smUsersLoggedIn where UserType = X and UserStatus <> 3
Where X is the User Type of the current user, probably 1 for normal users.
The view smUsersLoggedIn joins the ACTIVITY table with the SY_Users_MSTR (SY01400) so that the User Status and User Type fields available
select ACTIVITY.USERID as 'USERID', SY01400.UserType as 'UserType', SY01400.UserStatus as 'UserStatus'
from ACTIVITY
left outer join SY01400 ON (SY01400.USERID = ACTIVITY.USERID)
Look at your ACTIVITY table you must have stranded users.
Regards
David
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156