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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to import data in N:N relationship using xrmtoolbox

(0) ShareShare
ReportReport
Posted on by

Hi

i need help, i have a scenario to upload/import data of N:N relationships in Dynamics 365 CRM, i tried to get help from Google Youtube but did not succeed.I have used xrmtoolbox(Manage NN Relationships) data is exported but error is occurring on import data, error file is attached please find the attachment
Can you help me?
pastedimage1633265967565v1.png
I have the same question (1)
  • ACECORP Profile Picture
    1,589 on at

    What is the exact error message in its entirety for line 2 in the screen shot?

  • Suggested answer
    Venkatesh Nadar Profile Picture
    on at

    Hi,

    1. Download and extract the XRM Toolbox.  This is a suite of free tools that can make quite a few things easier in CRM.  It can be found here: https://xrmtoolbox.codeplex.com/
    2. Launch the XRM Toolbox
    3. Click Connect to your organization pastedimage1633330525579v1.png
    4. If you have previously used the XRM Toolbox, you can pick your connection from the list, otherwise create a new one (your CRM administrator should be able to provide you with your connection information)
      pastedimage1633330525579v2.png
    5. Once connected, scroll down and select the Import/Export NN Relationships tool.
    6. Once it opens, click the Load Metadata button (this may take a minute).

      If you get a warning stating “No many to many relationships found for this entity!”, that’s okay. It will default to the first entity it finds (sorted alphabetically). That entity may or may not have N:N relationships.pastedimage1633330525579v3.png

    7. Select the First Entity value.  In this test case, we are going to relate existing Account records to a custom entity called NAICS Code.  We will select Account as the First Entity.
    8. Under the Relationship, we will select the appropriate N:N relationship.
    9. Under the Second Entity, it will display the other side of the N:N relationship.
    10. Next, we will change the Mapping Attribute options.  Unless you know the list of GUIDs assigned to each record, you will probably want to change this to lookup based on another known value, i.e. Account Number
    11. Repeat this process for the second entity.  In the example below, I selected the NAICS Code instead of its GUID
      pastedimage1633330525579v4.png
    12. Next, you will need to build your file.  This requires a semicolon-delimited list.  The first column will be the value that ties to the First Entity.  The second column will be tied to the Second Entity.

      Our Excel file looks like this:
      pastedimage1633330525580v5.png

      • Remove the column header as the Import/Export NN Relationships utility will attempt to import all of the rows as data
      • Then convert it to a semicolon-delimited file.  In order to convert it to a semicolon-delimited list, we can follow the steps outlined here.  In their example, they use the pipe character, you will just need to enter a semicolon instead.  Don’t forget to change this setting back once you have exported your file!
      • If we look at the file we just saved in Notepad (or your favorite text editor), it should look like the image below.
        pastedimage1633330525580v6.png
    13. Now that we have our file, click the Browse button and select it.
    14. Then click Import NN Relationships to import your file, the results will be displayed in the Log window.
      pastedimage1633330525580v7.png
    15. If we go look in CRM, we can now see that the Account is associated with the NAICS Code!  If something goes wrong, it will tell you which line is having a problem and which part of the lookup failed.
      pastedimage1633330525580v8.png

    Hope this helps!

    Regards,

    Venkatesh N

  • Dynamics CRM Konsultantc365 Profile Picture
    25 on at

    Error is: "More than one record (ds_tagsetup) were found with the value specified

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans