web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    Tim Wappat Profile Picture
    5,713 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Shravan Attelli Profile Picture

Shravan Attelli 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans