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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Merging Vendors Error: Multiple Vendors per company for a party are not allowed.

(0) ShareShare
ReportReport
Posted on by

Hi,  through online documentation I've navigated to the Global Address Book and located two vendors I would like to merge.  Once I select my party to retain I get the following error: Multiple Vendors per company for a party are not allowed.

I searched the forums and google for the error string and haven't found any solutions.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,896 Super User 2025 Season 2 on at

    Hi Phycodes,

    The merge is only working when you merge parties having a role as vendor in separate companies or when you want to merge a party with a different role in the same legal entity.

    In your scenario you have probably created the vendor twice in the same company. The merge is not working then.

    You can have a look at the next thread on this community how to merge the master date. The example tells you about customers, but can be also used for vendors. After that you might be able to merge the GAB record as well.

    community.dynamics.com/.../295114

  • Community Member Profile Picture
    on at

    Thanks for the quick reply Andre.

    Yes the same vendor was created twice for the same company.  So would I then change the code from CustTable to VendTable (or what it is, I guess I'll need to do research).

    Where exactly do I run this script?

    Also I did read the warning - we have a test environment where I can run this to be safe.

    Thanks.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,896 Super User 2025 Season 2 on at

    Hi Phycodes,

    Yes, you can change CustTable to VendTable. This is the table used for Vendors. Note you have to change it for all occasions. Also it would be recommended to change the cust1 and cust2 variable names into vend1 and vend2.

    In the AOT, you can go to the Jobs node. Then right click this node and create a new job. You can copy and paste the code which is available in the other thread and change the table name and Vendor account numbers. Then you can save the job (CTRL+S), compile the job (F7) and run it (F5).

  • Community Member Profile Picture
    on at

    Andre,

    I have the same issue. There are duplicate contacts created for the same customer. When trying to Merge the Party records I get this error. We don't need to Merge Contacts of different Customers at all. Could you let me know if I need to use this script? Wish that I'm missing something as it is only logical to Merge out the duplicates.

    Also, what happens to the Merged records? Are they marked Inactive or delete?

    Thanks!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans