locked
Submit operation failed. Unable to determine a valid ordering for dependent operations. RRS feed

  • Question

  • In my silverlight application I got the following exception while adding new record. I am using stored procedures to insert, update and delete.
    I have one identity column (not primary key).  In the model StoreGeneratedPattern is set as Computed (Both schema's) 


    Submit operation failed. Unable to determine a valid ordering for dependent operations. Dependencies may exist due to foreign key constraints, model requirements, or store-generated values.

       at System.Data.Mapping.Update.Internal.UpdateTranslator.DependencyOrderingError(IEnumerable`1 remainder)
       at System.Data.Mapping.Update.Internal.UpdateTranslator.ProduceCommands()
       at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)
       at System.Data.EntityClient.EntityAdapter.Update(IEntityStateManager entityCache)
       at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)
       at System.ServiceModel.DomainServices.EntityFramework.LinqToEntitiesDomainService`1.InvokeSaveChanges(Boolean retryOnConflict)
       at System.ServiceModel.DomainServices.EntityFramework.LinqToEntitiesDomainService`1.PersistChangeSet()
       at System.ServiceModel.DomainServices.Server.DomainService.PersistChangeSetInternal()
       at System.ServiceModel.DomainServices.Server.DomainService.Submit(ChangeSet changeSet)
       at System.ServiceModel.DomainServices.Hosting.ChangeSetProcessor.Process(DomainService domainService, IEnumerable`1 changeSetEntries)
       at System.ServiceModel.DomainServices.Hosting.SubmitOperationBehavior.SubmitOperationInvoker.InvokeCore(Object instance, Object[] inputs, Object[]& outputs)

    Regards, Arun
    Tuesday, May 25, 2010 2:39 PM

Answers

All replies