
Pratik asked a question.
Error on console:
{"message":"An error has occurred.","exceptionMessage":"Attaching an entity of type 'Snow.SnowAutomationPlatform.Domain.RequestParameter' failed because another entity of the same type already has the same primary key value. This can happen when using the 'Attach' method or setting the state of an entity to 'Unchanged' or 'Modified' if any entities in the graph have conflicting key values. This may be because some entities are new and have not yet received database-generated key values. In this case use the 'Add' method or the 'Added' entity state to track the graph and then set the state of non-new entities to 'Unchanged' or 'Modified' as appropriate.","exceptionType":"System.InvalidOperationException","stackTrace":" at System.Data.Entity.Core.Objects.ObjectContext.VerifyRootForAdd(Boolean doAttach, String entitySetName, IEntityWrapper wrappedEntity, EntityEntry existingEntry, EntitySet& entitySet, Boolean& isNoOperation)\r\n at System.Data.Entity.Core.Objects.ObjectContext.AttachTo(String entitySetName, Object entity)\r\n at System.Data.Entity.Internal.Linq.InternalSet`1.ActOnSet(Action action, EntityState newState, Object entity, String methodName)\r\n at System.Data.Entity.Internal.Linq.InternalSet`1.Attach(Object entity)\r\n at System.Data.Entity.DbSet`1.Attach(TEntity entity)\r\n at Snow.SnowAutomationPlatform.Domain.Data.Repository`1.Delete(TEntity entity)\r\n at System.Collections.Generic.List`1.ForEach(Action`1 action)\r\n at Snow.SnowAutomationPlatform.API.Controllers.CartController.SubmitRequest(IEnumerable`1 suppliedParameters, Request request) in C:\\BuildAgent\\work\\d8f7074797a67efd\\Source\\Snow.AP.API\\Controllers\\CartController.cs:line 387\r\n at Snow.SnowAutomationPlatform.API.Controllers.CartController.InvokeWorkflow(InvokeWorkflowDto restWorkflowDetails) in C:\\BuildAgent\\work\\d8f7074797a67efd\\Source\\Snow.AP.API\\Controllers\\CartController.cs:line 569\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"}
Hi Pratik, for technical issues I would suggest you to please open a case to our Support team. The Portal is available here:
https://community.flexera.com/s/support-hub
Best regards
Hi Pratik,
We do face the same issue after 3.8.6 upgrade, do you got the solution for this?
Regards
Ashok
Hi Ashokkumar,
After updating to 3.8.6 still i am getting this error
Thanks Pratik, i raised it with Support Team they are yet to come back on a fix. Please keep posted if you find a solution on this.