Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Cannot delete attribute map

(0) ShareShare
ReportReport
Posted on by 185

Hi Community, 

I'm really stuck with a problem and I dont know how to figure out the solution. 

My issue is the following, on the opportunity entity I have four lookup fields on the account and all of them have mappings. Now when I try to delete one of the mappings, I get an error saying "Cannot create or delete system attribute map having id 564f51a5-9fb9-e711-810a-5065f38a3901 from accountid to otheroeminvolved belonging to an entity map with id f56c0f8e-a429-e611-80e3-5065f38a8a91 from account to opportunity"

After some reasearches on the community, it says to do so I should remove it from all related componenents (Vues, workflows, forms.. etc). While I'm removing the components I find out a strange dependancy with potential customer field on the opportunity which I cannot remove. 

2020_2D00_01_2D00_06_5F00_17h23_5F00_18.png

No Idea from where this depandancy comes, and whether removing it is the right path to delete those mappings or not ?

 

  • LeoAlt Profile Picture
    LeoAlt 16,331 on at
    RE: Cannot delete attribute map

    Hi partner,

    You could raise a ticket to Microsoft Team for more professional help.

    Best Regards,

    Leo

  • elmaslouhi1 Profile Picture
    elmaslouhi1 185 on at
    RE: Cannot delete attribute map

    I'm already using a workflow to clear the field, but now I'm looking for an explanation for the dependency and a solution to remove the mapping.

  • LeoAlt Profile Picture
    LeoAlt 16,331 on at
    RE: Cannot delete attribute map

    Hi partner,

    "potential customer" is a system field in the opportunity, and in default, it should be in the field list, not on the form. But once you put it on the form, you will not be able to remove it cause it is business required.

    https://neilparkhurst.com/2015/12/10/opportunity-potential-customer/

    pastedimage1578364768097v1.png

    According to your description, please check if you put the "potential customer" on your form.

    If so, I suggest that you could use JS code to make the mapping field which you want to remove value as null to meet your requirement.

    function OnLoad(executionContext) {
        var formContext = executionContext.getFormContext();
        if (formContext.getAttribute("new_name").getValue() != null) {
            formContext.getAttribute("new_name").setValue(null);
        }

    }

    Hope it helps.

    Best Regards,

    Leo

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans