Skip to main content
Dynamics 365 general forum
Suggested answer

Data Import - A Duplicate Reference Was Found

editSubscribe (0) ShareShare
ReportReport
Posted on by 5

Hi, trying to do an import into a custom entity which has a lookup to account, contact, and user entities. I keep getting the error "A duplicate reference was found" on the mapping to the contact entity. I turned off all duplicate detection as well. I'm basically trying to map records into a custom entity that may have references to the same company and contact multiple times. How can I have this associate the record in the spreadsheet to the same contact each time? Do I have to use the GUID of the contact or is there an easier way to do this?

  • Community Member Profile Picture
    Community Member UG Leader on at
    RE: Data Import - A Duplicate Reference Was Found

    Hi Partner,

    Can you click Yes under "Did this answer your question?" to close this thread if my answer is helpful.

     pastedimage1639729770157v1.png

    Thanks in advance!:)

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,934 Super User on at
    RE: Data Import - A Duplicate Reference Was Found

    Hi,

    If you have duplicate records, system will not process those records as it is difficult to determine which record to pick and map.

    If you don't have unique column to be mapped, I would recommend you use GUID of the record so that system will map to a specific record.

    Other option is to use any other unique field to map your lookup as mentined above.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Suggested answer
    Community Member Profile Picture
    Community Member UG Leader on at
    RE: Data Import - A Duplicate Reference Was Found

    Hi JR81,

    Normally when we import records which has a related entity, import process will resolve the lookup reference if it finds single record in the parent entity otherwise, it will stop processing the record and ends in fail.

    CRM has two contacts with same name then Import process gives error.  

    So you need replace the column values(Contact) in your source file with something that is truly unique.

    You don't have to use the contact's GUID, other fields are fine as long as you make sure it's unique

    Duplicate Lookup Reference Was Found - {Quick Tip} (c-sharpcorner.com)

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,030 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans