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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Delete system attribute mapping

(1) ShareShare
ReportReport
Posted on by 110

Hello,

I have a problem to delete mapping between lead and opportunity.  I have removed the dependencies (which means a field on the form) but still I am having an error message that "Cannot create or delete system attribute map having id ----------------------- from leadid to originatingleadid belonging to an entity map with id ------------------------- from lead to opportunity.

I found out that there has been earlier discussion of this topic but that does not offer a solution for me.

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/376660/cannot-delete-attribute-map

Anyone knows what to do with it?

 

I have the same question (0)
  • meelamri Profile Picture
    13,216 User Group Leader on at
    RE: Delete system attribute mapping

    Hi,

    would you please close this thread ?

  • Verified answer
    Gilmeyer Profile Picture
    on at
    RE: Delete system attribute mapping

    Hi,

    This is CRM intended behavior. Whenever you create a lookup field (or its relationship), there is an automatic mapping between the lookup field and the primary key attribute of the source entity in the relationship. In your case, the mapping is between leadid which is the primary key attribute of source entity Lead and the lookup field originatingleadid . This is the system mapping created for this lookup field. You cannot delete it.

  • Miguel Lourenco Profile Picture
    on at
    RE: Delete system attribute mapping

    Hi Tuomas,

    Allow me to ask you why would you want to delete a system attribute mapping?

    Regards

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at
    RE: Delete system attribute mapping

    Hi,

    It's a known old issue. Unfortunately, You can't delete those mappings. You can clear your data using some JS code. Please refer to the sample code below:

    
    function cancelMappings(executionContext) {
        var formContext = executionContext.getFormContext();
        if (formContext.ui.getFormType() == 1) {
            var mapping1 = formContext.getAttribute("prefix_mapping1");
            if (mapping1.getValue() != null)
                mapping1.setValue(null);
        }
        else
            return;
    }

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 433

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 67 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans