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

Announcements

News and Announcements icon
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
    305,398 Super User 2026 Season 1 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
    305,398 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
Harisgillani Profile Picture

Harisgillani 4

#2
dekion Profile Picture

dekion 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans