locked
CRM 4.0 to 2011 Upgrade Error -Microsoft.Crm.CrmException: The dependent component Entity does not exist. RRS feed

  • Question

  • Hi All,

    I am getting the below exception while upgrading MS CRM 4.0 to MS CRM 2011 in the view log file of the Import wizard.

    By using below query I found the which entity is causing the issue, It returns the entity name "TransactionCurrency".

    select * from MetadataSchema.Entity where EntityId = '5f2e7ae7-d327-49b5-a343-61d48f1bcd28'

    It would be great if you can provide the solution for this.

    stem.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Crm.CrmException: The dependent component Entity (Id=5f2e7ae7-d327-49b5-a343-61d48f1bcd28) does not exist. Failure trying to associate it with EntityRelationshipRole (Id=f6b1b0e9-f61a-434d-8dc8-a3417eccb233) 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.EntityRelationshipRoleDependencyCalculator.DetermineSolutionInternalDependencies(ExecutionContext context) at Microsoft.Crm.ObjectModel.MetadataDependencyCalculatorBase.DetermineAllDependencies(ICollection`1 records, ExecutionContext context) at Microsoft.Crm.ObjectModel.DependencyHelperBase.UpdateDependencies(ExecutionContext context) at Microsoft.Crm.Dependency.ComponentCollector.UpdateComponentDependencies(Dictionary`2 recordsByComponentType, ExecutionContext context) at Microsoft.Crm.Dependency.ComponentCollector.ProcessRecords(ExecutionContext context) at Microsoft.Crm.BusinessEntities.ExecutionContext.ProcessDependencies(FlushCacheOption option, CreateNewCollectorOption createOption, ValidateDependenciesOption validateOption) at Microsoft.Crm.BusinessEntities.ExecutionContext.OnEndRequest() at Microsoft.Crm.SE.DllMethodActions.AddMissingDependencies.Install()

    Thanks in advance.

    Srikanth



    Sunday, June 15, 2014 6:11 AM