Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Customer Combiner Primary Key Constraint

(0) ShareShare
ReportReport
Posted on by 10

Receiving error message using customer combiner with Primary Key Constraint 'PKCU_CustomerAddressCheck' Cannot insert duplicate key in object 'dbo.CU-Customer AddressCheck. Anyone know of a solution?

*This post is locked for comments

  • Suggested answer
    Tim Wappat Profile Picture
    Tim Wappat 5,703 on at
    RE: Customer Combiner Primary Key Constraint

    The customer combiner runs through your GP company database looking for fields named CUSTNMBR and will attempt to update any records in those fields with the new customer number you are merging records into.

    For native GP tables the process is aware where a primary key exists and has logic to deal with it, but for 3rd party product or addin tables it will blindly attempt to do this rename, even if that field is part of a primary key, this results in the prime key error as two records with the same customer number will be created if one already existed for the customer number you are merging into (Simply, a primary key only allows one record of that name in the table).

    So I think that CU_CustomerAddressCheck is a table for some extra product in your GP installation, that does not support the rename functionality. You need to work out what that product or modification is, then approach the vendor or person that made that table so that an appropriate fix can be put in place.

    This post mentions the issue you are having:

    www.timwappat.info/.../Care-naming-database-objects-in-Dynamics-GP-for-custom-GP-Addins

    This post talks more generally about what is going on:

    www.timwappat.info/.../Customer-combiner-and-table-not-found-errors

    Tim.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,387 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans