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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Can't delete a custom field from the Opportunity Product entity

(0) ShareShare
ReportReport
Posted on by 145

Hi,

I have three custom fields on the Opportunity Product entity which I removed from all forms, views, Business Rules, etc. I published everything and then went to delete the fields, and for each of them I got the "Cannot delete Field because one or more components require it." When I click "details" on the errors, there are no dependencies listed. The error logs say the component is referenced by 1 other component.

From the field properties for all three fields, when I click "Show Dependencies", same thing no records shown.

I restarted the app and db servers and no change. Any ideas?

Thanks!

Steve

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Bruno Lucas Profile Picture
    5,421 on at

    What type of field are those? I've seen something similar on a lookup where the lookup relationship got deleted but the field didn't get deleted plus the name modified. it was back on crm 4. try to go to setting > customisations and hit "publish all" to see if there is something stuck. than try check the dependencies again

    try this:http://msdn.microsoft.com/en-us/library/gg309749.aspx

    I remember also I could not delete the field but it would leave a more detailed error message with the crm tracer on. that message helped me to fix the problem

  • Hosk Profile Picture
    on at

    Did you publish the changes?

    You should also check you have removed it from all views and subgrids.

  • Community Member Profile Picture
    on at

    Also check to see if there are any Process ie workflows, Business Process Flows  using those fields

  • Steve Price Profile Picture
    145 on at

    All three are decimal number fields. I had done a Publish All as well.

    You mentioned turning tracing on...I tried that and replicated the error. I don't see anything useful. Any chance you do?

    [2014-10-07 10:04:44.786] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:  517 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: d17360a0-ddce-4709-88bf-b3d5b7839dea | CrmException..ctor  ilOffset = 0x30

    at CrmException..ctor(String formattedErrorMessage, Int32 errorCode, Object[] arguments)  ilOffset = 0x30

    at AttributeService.ValidateForDelete(Guid attributeId, ExecutionContext context)  ilOffset = 0x3FE

    at AttributeService.Delete(Guid attributeId, MetadataHelper metadataHelper, ExecutionContext context)  ilOffset = 0x31

    at AttributeService.Delete(Guid attributeId, Guid solutionId)  ilOffset = 0x2D

    at AttributeDelete.Execute(Guid attributeId, Guid solutionId)  ilOffset = 0x28

    at SystemCustomization.DeleteAttribute(Guid attributeId)  ilOffset = 0x7

    at DeleteDialogPage.ConfigureForm()  ilOffset = 0x613

    at AppUIPage.OnPreRender(EventArgs e)  ilOffset = 0x13

    at Control.PreRenderRecursiveInternal()  ilOffset = 0x54

    at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x6D3

    at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x3C

    at Page.ProcessRequest()  ilOffset = 0x14

    at Page.ProcessRequest(HttpContext context)  ilOffset = 0x33

    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D

    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

    at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A

    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C

    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A

    at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B

    >Crm Exception: Message: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest., ErrorCode: -2147160033

    [2014-10-07 10:04:44.990] Process: w3wp |Organization:7678871c-9400-e411-80cb-00155d00b50c |Thread:  517 |Category: Platform.Metadata |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: d17360a0-ddce-4709-88bf-b3d5b7839dea | AttributeService.Delete  ilOffset = 0x31

    >AttributeService.Delete caught exception: Microsoft.Crm.CrmException: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.

      at Microsoft.Crm.Metadata.AttributeService.ValidateForDelete(Guid attributeId, ExecutionContext context)

      at Microsoft.Crm.Metadata.AttributeService.Delete(Guid attributeId, MetadataHelper metadataHelper, ExecutionContext context)

    [2014-10-07 10:04:45.021] Process: w3wp |Organization:7678871c-9400-e411-80cb-00155d00b50c |Thread:  517 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: d17360a0-ddce-4709-88bf-b3d5b7839dea | ErrorInformation.LogError  ilOffset = 0x17

    >MSCRM Error Report:

    --------------------------------------------------------------------------------------------------------

    Error: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.

    Error Number: 0x8004F01F

    Error Message: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.

    Error Details: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.

    Source File: Not available

    Line Number: Not available

    Request URL: dev-crmapp.whitewaterwest.com/.../dlg_delete.aspx;cType=bc&holidayCalendarId=&iAuditEndDate=&iId=%7b2DB87638-C007-E411-80CB-00155D00B50C%7d&iIndex=0&iObjType=9802&iTotal=1&sCalendarId=&sParentId=&sSrcQueueId=&sSubTypes=

    Stack Trace Info: [CrmException: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.]

      at Microsoft.Crm.Metadata.AttributeService.ValidateForDelete(Guid attributeId, ExecutionContext context)

      at Microsoft.Crm.Metadata.AttributeService.Delete(Guid attributeId, MetadataHelper metadataHelper, ExecutionContext context)

      at Microsoft.Crm.Metadata.AttributeService.Delete(Guid attributeId, Guid solutionId)

      at Microsoft.Crm.Application.WebServices.SystemCustomization.AttributeDelete.Execute(Guid attributeId, Guid solutionId)

      at Microsoft.Crm.Application.WebServices.SystemCustomization.SystemCustomization.DeleteAttribute(Guid attributeId)

    [2014-10-07 10:04:45.036] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:  517 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: d17360a0-ddce-4709-88bf-b3d5b7839dea | CrmException..ctor  ilOffset = 0x30

    at CrmException..ctor(String formattedErrorMessage, Int32 errorCode, Object[] arguments)  ilOffset = 0x30

    at DeleteDialogPage.ProcessCrmException(CrmException crmEx)  ilOffset = 0x129

    at DeleteDialogPage.ConfigureForm()  ilOffset = 0x613

    at AppUIPage.OnPreRender(EventArgs e)  ilOffset = 0x13

    at Control.PreRenderRecursiveInternal()  ilOffset = 0x54

    at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x6D3

    at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x3C

    at Page.ProcessRequest()  ilOffset = 0x14

    at Page.ProcessRequest(HttpContext context)  ilOffset = 0x33

    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D

    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

    at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A

    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C

    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A

    at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B

    >Crm Exception: Message: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest., ErrorCode: -2147160033

    [2014-10-07 10:04:45.036] Process: w3wp |Organization:7678871c-9400-e411-80cb-00155d00b50c |Thread:  517 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: d17360a0-ddce-4709-88bf-b3d5b7839dea | ErrorInformation.LogError  ilOffset = 0x17

    >MSCRM Error Report:

    --------------------------------------------------------------------------------------------------------

    Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.

    Error Number: 0x8004F01F

    Error Message: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.

    Error Details: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.

    Source File: Not available

    Line Number: Not available

    Request URL: dev-crmapp.whitewaterwest.com/.../dlg_delete.aspx;cType=bc&holidayCalendarId=&iAuditEndDate=&iId=%7b2DB87638-C007-E411-80CB-00155D00B50C%7d&iIndex=0&iObjType=9802&iTotal=1&sCalendarId=&sParentId=&sSrcQueueId=&sSubTypes=

    Stack Trace Info: [CrmException: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.]

      at Microsoft.Crm.Dialogs.DeleteDialogPage.ProcessCrmException(CrmException crmEx)

      at Microsoft.Crm.Dialogs.DeleteDialogPage.ConfigureForm()

      at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)

      at System.Web.UI.Control.PreRenderRecursiveInternal()

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    [HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]

      at System.Web.UI.Page.HandleError(Exception e)

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

      at System.Web.UI.Page.ProcessRequest()

      at System.Web.UI.Page.ProcessRequest(HttpContext context)

      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    [2014-10-07 10:04:45.036] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:  517 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: d17360a0-ddce-4709-88bf-b3d5b7839dea | ExceptionConverter.ConvertToFault  ilOffset = 0x57

    >UNEXPECTED: no fault?

    [2014-10-07 10:04:45.036] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:  517 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: d17360a0-ddce-4709-88bf-b3d5b7839dea | ExceptionConverter.ConvertMessageAndErrorCode  ilOffset = 0x23B

    >System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #2C32E274: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: The Attribute(2db87638-c007-e411-80cb-00155d00b50c) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.

    >   at Microsoft.Crm.Dialogs.DeleteDialogPage.ProcessCrmException(CrmException crmEx)

    >   at Microsoft.Crm.Dialogs.DeleteDialogPage.ConfigureForm()

    >   at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)

    >   at System.Web.UI.Control.PreRenderRecursiveInternal()

    >   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    >   at System.Web.UI.Page.HandleError(Exception e)

    >   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    >   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    >   at System.Web.UI.Page.ProcessRequest()

    >   at System.Web.UI.Page.ProcessRequest(HttpContext context)

    >   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

    >   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  • Bruno Lucas Profile Picture
    5,421 on at

    not much different. it just means Attribute(2db87638-c007-e411-80cb-00155d00b50c)  is referenced by an object. to find you will need to use this sample from the CRM sdk

    msdn.microsoft.com/.../gg509063.aspx

    do you have visual studio. if not I can send you a compiled version of this sdk demo

    also, following on nomadrw answer, if you use it on a workflow, check to see if there is any old instance of such workflow with status "waiting". if so, you need to delete it

  • Aileen Gusni Profile Picture
    44,524 on at

    Hi Steve,

    Check the view, including views used in subgrid, all forms (including the quick view form appears in another entity), all processes (including workflow, business process flow, dialog,  business rules), charts, or maybe field level security (not sure), and then try to publish all customizations.

    Thanks.

  • Steve Price Profile Picture
    145 on at

    In the end I had a colleague (developer) help out. We couldn't locate any dependency via the interface (re-checked all views, forms, process, etc..), but he was able to use a console app and resolve the issue and remove the fields. Thanks all for the advice!

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans