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

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Dependency that prevents delete attribute isn't there

(0) ShareShare
ReportReport
Posted on by 12

Hi,
Today needed to delete a custom attribute, a field on the Account entity. So I started to remove it from processes and forms and when that was ready, I tried to delete it. As my subject line already revealed, I got the "The Attribute(bladibladiguid) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest." message.

When clicking on the Details in the error message, it showed me that the attribute is still on the standard form. Well, it isn't! If I open up the form, the attribute is listed on the right as unused.

I added it again, deleted it, iis reset (hey, maybe it's cached?), but no change whatsoever.

Any thoughts on this?

thanks,
Jeroen

I have the same question (0)
  • Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Jeroen,

    What is the type of your your attribute?

    Thanks

    Regards,

    Abdul Wahab

  • Jomy Jose Profile Picture
    290 on at

    Have you used the field for any JavaScript function on same field change in form ?, also check for BPF and Business rules

  • Jeroen J Profile Picture
    12 on at

    Hi, it's type 2, attribute/field.

    The field was created, added to the form, removed and (tried) to delete. No scripting, no BPF or business rules unfortunately.

  • Suggested answer
    Emily Zhang Profile Picture
    Microsoft Employee on at

    1. Export a solution including that form

    2. unzip the solution.zip file, there should be a customization.xml

    3.open customization.xml> navigate  to the formxml tag of that form

    pastedimage1591793671365v1.png

    4. search the attribute name, it should show up somewhere. 

    5. Remove that from customization.xml 

    6. zip the solution again and import into org.

    7. try to delete that attribute again 

  • Jeroen J Profile Picture
    12 on at

    Hi Emily,

    Thanks for a great suggestion. I immediately got to it. Unfortunately, the attribute isn't in the xml.

    (getting weird, huh?)

  • Jeroen J Profile Picture
    12 on at

    I'm on premise, so tried

    exec p_RetrieveDependenciesForDelete 'e0dcd1a2-e959-4616-8e17-e3a051f788ee',2

    which gave me dependency with a 47 type (attributemap), but that's all I can come up with. Is there a way to delete/undock an attributemap?

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    I would suggest you to got to Entity-> FIelds -> Select field and click more option-> Show dependencies

    you should able to see list of components which are dependant and the field can not be deleted until and unless you remove field from those components.

    Can you please follow the process which i mentioned and send screenshot of dependency dialog to investigate further.

    Please mark my answer verified if I were helpful!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 96 Super User 2026 Season 1

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 55 Super User 2026 Season 1

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 51

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans