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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Creating Solution to edit Contact Form - Errors when saving

(0) ShareShare
ReportReport
Posted on by 5

We are trying to add a new field to our contact form (though even if just delete a field still get the same error) but when we save the file get the following errors

[object XMLDocument

Dependency Calculation

There was an error calculating dependencies for this component. Missing component id 50fe4374-e7ed-e911-a811-000d3a86ac79 If you contact support, please provide the technical details.

Activity ID: 1c4e53b1-d410-4f45-bf45-1e527d7af9ca
Timestamp: Wed Jul 01 2020 23:26:57 GMT 0100 (British Summer Time)
Then the log shows:-
Unhandled exception: 
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: The dependent component EntityRelationship (Id=50fe4374-e7ed-e911-a811-000d3a86ac79) does not exist.  Failure trying to associate it with SystemForm (Id=1fed44d1-ae68-4a41-bd2b-f13acac4acfa) as a dependency. Missing dependency lookup type = PrimaryKeyLookup.Detail: 

  1c4e53b1-d410-4f45-bf45-1e527d7af9ca
  -2147160010
  
    
      ApiExceptionSourceKey
      Api/PostPipeline
    
    
      ApiOriginalExceptionKey
      Microsoft.Crm.CrmException: The dependent component EntityRelationship (Id=50fe4374-e7ed-e911-a811-000d3a86ac79) does not exist.  Failure trying to associate it with SystemForm (Id=1fed44d1-ae68-4a41-bd2b-f13acac4acfa) as a dependency. Missing dependency lookup type = PrimaryKeyLookup.
   at Microsoft.Crm.ObjectModel.InvalidDependencyService.CreateInvalidDependency(Guid existingComponentId, Int32 existingComponentType, DependencyTypes dependencyType, MissingDependencyLookupType lookupType, Object lookupInfo, Int32 missingComponentType, ExistingComponentState state, InvalidDependencyExceptionOption exceptionOption, BusinessEntityCollection previousInvalidDependencies, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.DependencyCalculator.CreateInvalidAncestorDependency(DependencyTypes dependencyType, MissingDependencyLookupType lookupType, Object lookupInfo, Int32 componentType, InvalidDependencyExceptionOption exceptionOption, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.DependencyCalculator.SetAncestor(Guid id, Int32 componentType, DependencyTypes dependencyType, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.SystemFormDependencyCalculator.SetAncestorsFromList(IList`1 components, DependencyTypes type, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.SystemFormDependencyCalculator.SetFormDependencies(BusinessEntity entity, DependencyTypes type, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.DependencyCalculatorBase.DetermineAllDependencies(ICollection`1 records, ExecutionContext context)
   at Microsoft.Crm.ObjectModel.DependencyHelperBase.<>c__DisplayClass20_0.b__1()
   at Microsoft.Crm.SqlTelemetryHelper.LogSqlTimes(Action action, String operationName)
   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
   at Microsoft.Crm.ObjectModel.DependencyHelperBase.UpdateDependencies(ExecutionContext context, List`1& missingDependencies)
   at Microsoft.Crm.Dependency.ComponentCollector.UpdateComponentDependencies(Dictionary`2 recordsByComponentType, ExecutionContext context)
   at Microsoft.Crm.Dependency.ComponentCollector.ProcessRecords(ExecutionContext context)
   at Microsoft.Crm.BusinessEntities.ExecutionContext.<>c__DisplayClass275_0.b__1()
   at Microsoft.Crm.SqlTelemetryHelper.LogSqlTimes(Action action, String operationName)
   at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
   at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
   at Microsoft.Crm.BusinessEntities.ExecutionContext.CommitTransaction(ProcessDependenciesOption option, FlushCacheOption flushOption)
   at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, Guid callerRegardingObjectId, Int32 invocationSource, Version endpointVersion, OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.DispatchRequest(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest, SdkResponseDescription responseDescription, SdkPerformanceCounterContext sdkPerformanceCounterContext)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentationOperation(OrganizationRequest request, OrganizationInternalRequest organizationInternalRequest)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.<>c__DisplayClass18_0.b__0()
    
    
      ApiStepKey
      00000000-0000-0000-0000-000000000000
    
    
      ApiDepthKey
      1
    
    
      ApiActivityIdKey
      1c4e53b1-d410-4f45-bf45-1e527d7af9ca
    
    
      ApiPluginSolutionNameKey
      System
    
    
      ApiStepSolutionNameKey
      System
    
    
      ApiExceptionCategory
      ClientError
    
    
      ApiExceptionMesageName
      InvalidDependency
    
    
      ApiExceptionHttpStatusCode
      400
    
    
      0
      50fe4374-e7ed-e911-a811-000d3a86ac79
    
    
      1
      EntityRelationship
    
    
      2
      dependent
    
    
      3
      SystemForm
    
    
      4
      1fed44d1-ae68-4a41-bd2b-f13acac4acfa
    
    
      5
      PrimaryKeyLookup
    
  
  http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException:8004f036&client=platform
  The dependent component EntityRelationship (Id=50fe4374-e7ed-e911-a811-000d3a86ac79) does not exist.  Failure trying to associate it with SystemForm (Id=1fed44d1-ae68-4a41-bd2b-f13acac4acfa) as a dependency. Missing dependency lookup type = PrimaryKeyLookup.
  2020-07-01T22:26:57.5726271Z
  false
  
  
  
  
I'm new to looking after this system and pretty clueless so any help would be greatly appreciated 
I have the same question (0)
  • Suggested answer
    Adarsha MG Profile Picture
    on at

    Hi Andy,

    The Dependency error is a known issue and the cause can be the below.

    This error can occur if the solution you are importing includes a component that depends on another component but that dependent component is not in the solution you are importing and does not exist in the target organization.

    Please refer the below article which explains the issue ,  Cause and also the solution for your issue.

    support.microsoft.com/.../there-was-an-error-calculating-dependencies-for-this-component-missing

  • Andy O Profile Picture
    5 on at

    Hi

    Thanks for the reply; I had looked at that but it is for importing the solution this is just trying to create the solution file and I can't figure out how to find out what dependency it needs

  • Adarsha MG Profile Picture
    on at

    Hello Andy,

    Any customization done on that field which you are trying to delete from the form ?

    As per my understanding you are trying to create an un-managed solution , which contains contact form component,

    and you are trying add a field [ Which field it is and what is the type of the field ?]

    Can you share me the re-pro steps here , i will try it in my vanilla org and see how it behaves?

  • Andy O Profile Picture
    5 on at

    Hi Adarsha MG

    Thanks for helping much appreciated!

    I was only trying to delete a field to see if it would work, but I get the error on any field I try to Add or Remove on this Contact Form.

    Here are screenshots of the process we are trying to do PDF with Screenshots

  • Suggested answer
    Adarsha MG Profile Picture
    on at

    Hello Andy,

    Thank you for the detailed repro steps ,

    I tried the exact steps in my vanilla instance and I was able to delete the Job title field .

    also I tried to delete the Full name field to check how it behaves and below is what the OOB message we get.

    Looks like Some customization is throwing the above error message for you , You can raise this concern with Microsoft support to get a detailed investigation.

    pastedimage1594002478153v1.png

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
    Trial

    Regards,

    Adarsh

  • Andy O Profile Picture
    5 on at

    Thanks Adarsh

    Just done that will see what they come back with

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 74

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans