Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Help with Primary Key Violation on AAG50000?

(0) ShareShare
ReportReport
Posted on by 1,584

I have a client who received a primary key violation error on this table in their Test company. This table is not included in Microsoft's script or eOne's script for addressing such errors for the AA tables when next numbers are out of sync. I also am not yet familiar with this table and am unsure of how to address manually. The error shows a SOP Void was being processed and displayed the violating key value:

www.screencast.com/.../yGQtQnTlrQ

A review of the table shows that AAG50000 has a record for the user and the violation key value. Yet, I notice she was working in the web client and the table also has an entry for "WebClientUser" and the Void document on the screen with the error is present on that row rather than the row with her actual username.

www.screencast.com/.../4cnCVEAYL3

*This post is locked for comments

  • chadbruels Profile Picture
    chadbruels 1,584 on at
    RE: Help with Primary Key Violation on AAG50000?

    Are you anticipating that the aaRowID might be getting fetched from the wrong row in the DYNAMICS.DBO.AAG00102 table? I didn't create the test company, so I don't know. If I check the GL10001 table, its record has the correct value in the INTERID column.

  • Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: Help with Primary Key Violation on AAG50000?

    Was this test company created from production data? If so, did you run the script to adjust the intercompany ID in test?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,606 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,551 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans