Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Error assigning users access in Analytical Accounting

(0) ShareShare
ReportReport
Posted on by 214

Hey

I hope someone can help? we have a client on Dynamics GP 2016 R2 they have upgraded from 2010 and now when they go into Admin > Setup > Analytical accounting > User Access and  choose the Trn Dimension and Trn Dimension Code then add a user and when they save the get the following error:

A get/change next operation on table "aaUserAccessToCodesSetup" failed. A record was already locked.

I have ran a SQL trace and nothing seems to be coming up that will point to what the issue is.

I have also got the dexsql log and there are a couple of errors showing 'Cannot insert duplicate key' and 'Cannot drop the procedure because it does not exist or you do not have permissions'

if you close the window and click ok on the message it does save the changes you have made but it comes up every time.

I have ran a check links on the GL and analytical accounting but there isn't anything for AA setup just transactional data.

I also cleared the dex_session, dex_lock, activity, SY00800 and SY00801 tables and still get the same error

Can anyone help?

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Error assigning users access in Analytical Accounting

    A new feature in GP2016 *might* be applicable. If you upgraded from previous versions of GP this Checkbox is Checked. It may be preventing your ability to provide access.

    6180.screenprintAA_2E00_.PNG

    community.dynamics.com/.../mdgp2016-aa-user-access

  • Verified answer
    Laura Bowie Profile Picture
    214 on at
    RE: Error assigning users access in Analytical Accounting

    Hi Lynn

    I was given some great advise from Jeff Banks on the Partner Network who advised this can happen if there are blank User IDs in the AAG02000 table.

    He advised to run the following script to identify them:

    SELECT * FROM AAG02000 WHERE USERID = ''

    I would then make sure you have a backup of the company database and run the following script to remove:

    DELETE FROM AAG02000 WHERE USERID = ''

    Hope this helps

    Laura

  • Lynn Knowles Profile Picture
    on at
    RE: Error assigning users access in Analytical Accounting

    Hi Laura

    Have you been able to resolve this as I have a client with the same issue, also running GP 2016.

    Many Thanks

    Lynn

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans