Concurrency erro when deleteing or updating multiple key field

29-Sep-2016 16:12

Some databases (including SQL Server) don’t support multiple relationships that specify cascade delete pointing to the same table.

Because Code First configures required relationships to have cascade delete, this results in an error if you have two required relationships to the same entity.

concurrency erro when deleteing or updating multiple key field-83

By convention, Code First switches on cascade delete for required relationships.

Method.invoke(Method.java:497) at com.atlassian.common. Dispatch Provider Helper$Response Out Invoker

By convention, Code First switches on cascade delete for required relationships.

Method.invoke(Method.java:497) at com.atlassian.common. Dispatch Provider Helper$Response Out Invoker$1.invoke(Dispatch Provider Helper.java:234) ... Exception Interceptor.intercept(Exception Interceptor.java:55) ... Task Thread$Wrapping Runnable.run(Task Thread.java:61) at Issue Bean Builder2$Field [email protected] and customfield_14469=com.rest.v2.issue. Issue Bean Builder2$Field [email protected] at com.google.common.collect. Immutable Map.check No Conflict(Immutable Map.java:150) at com.google.common.collect.

Regular Immutable Map.check No Conflict In Bucket(Regular Immutable Map.java:104) at com.google.common.collect.

This Knowledge Base article was written specifically for the Atlassian Server platform.

Due to the Restricted functions in Atlassian Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications. Illegal Argument Exception: Multiple entries with same key: customfield_14469=com.rest.v2.issue.

||

By convention, Code First switches on cascade delete for required relationships.Method.invoke(Method.java:497) at com.atlassian.common. Dispatch Provider Helper$Response Out Invoker$1.invoke(Dispatch Provider Helper.java:234) ... Exception Interceptor.intercept(Exception Interceptor.java:55) ... Task Thread$Wrapping Runnable.run(Task Thread.java:61) at Issue Bean Builder2$Field [email protected] and customfield_14469=com.rest.v2.issue. Issue Bean Builder2$Field [email protected] at com.google.common.collect. Immutable Map.check No Conflict(Immutable Map.java:150) at com.google.common.collect.Regular Immutable Map.check No Conflict In Bucket(Regular Immutable Map.java:104) at com.google.common.collect.This Knowledge Base article was written specifically for the Atlassian Server platform.Due to the Restricted functions in Atlassian Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications. Illegal Argument Exception: Multiple entries with same key: customfield_14469=com.rest.v2.issue.

.invoke(Dispatch Provider Helper.java:234) ... Exception Interceptor.intercept(Exception Interceptor.java:55) ... Task Thread$Wrapping Runnable.run(Task Thread.java:61) at Issue Bean Builder2$Field [email protected] and customfield_14469=com.rest.v2.issue. Issue Bean Builder2$Field [email protected] at com.google.common.collect. Immutable Map.check No Conflict(Immutable Map.java:150) at com.google.common.collect.

Regular Immutable Map.check No Conflict In Bucket(Regular Immutable Map.java:104) at com.google.common.collect.

This Knowledge Base article was written specifically for the Atlassian Server platform.

Due to the Restricted functions in Atlassian Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications. Illegal Argument Exception: Multiple entries with same key: customfield_14469=com.rest.v2.issue.

By convention, Code First switches on cascade delete for required relationships.Method.invoke(Method.java:497) at com.atlassian.common. Dispatch Provider Helper$Response Out Invoker

By convention, Code First switches on cascade delete for required relationships.

Method.invoke(Method.java:497) at com.atlassian.common. Dispatch Provider Helper$Response Out Invoker$1.invoke(Dispatch Provider Helper.java:234) ... Exception Interceptor.intercept(Exception Interceptor.java:55) ... Task Thread$Wrapping Runnable.run(Task Thread.java:61) at Issue Bean Builder2$Field [email protected] and customfield_14469=com.rest.v2.issue. Issue Bean Builder2$Field [email protected] at com.google.common.collect. Immutable Map.check No Conflict(Immutable Map.java:150) at com.google.common.collect.

Regular Immutable Map.check No Conflict In Bucket(Regular Immutable Map.java:104) at com.google.common.collect.

This Knowledge Base article was written specifically for the Atlassian Server platform.

Due to the Restricted functions in Atlassian Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications. Illegal Argument Exception: Multiple entries with same key: customfield_14469=com.rest.v2.issue.

If the relationship from is optional, this is not a problem, since by convention, Code First won’t use cascade delete with an optional relationship.

||

By convention, Code First switches on cascade delete for required relationships.Method.invoke(Method.java:497) at com.atlassian.common. Dispatch Provider Helper$Response Out Invoker$1.invoke(Dispatch Provider Helper.java:234) ... Exception Interceptor.intercept(Exception Interceptor.java:55) ... Task Thread$Wrapping Runnable.run(Task Thread.java:61) at Issue Bean Builder2$Field [email protected] and customfield_14469=com.rest.v2.issue. Issue Bean Builder2$Field [email protected] at com.google.common.collect. Immutable Map.check No Conflict(Immutable Map.java:150) at com.google.common.collect.Regular Immutable Map.check No Conflict In Bucket(Regular Immutable Map.java:104) at com.google.common.collect.This Knowledge Base article was written specifically for the Atlassian Server platform.Due to the Restricted functions in Atlassian Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications. Illegal Argument Exception: Multiple entries with same key: customfield_14469=com.rest.v2.issue.If the relationship from is optional, this is not a problem, since by convention, Code First won’t use cascade delete with an optional relationship.

.invoke(Dispatch Provider Helper.java:234) ... Exception Interceptor.intercept(Exception Interceptor.java:55) ... Task Thread$Wrapping Runnable.run(Task Thread.java:61) at Issue Bean Builder2$Field [email protected] and customfield_14469=com.rest.v2.issue. Issue Bean Builder2$Field [email protected] at com.google.common.collect. Immutable Map.check No Conflict(Immutable Map.java:150) at com.google.common.collect.Regular Immutable Map.check No Conflict In Bucket(Regular Immutable Map.java:104) at com.google.common.collect.This Knowledge Base article was written specifically for the Atlassian Server platform.Due to the Restricted functions in Atlassian Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications. Illegal Argument Exception: Multiple entries with same key: customfield_14469=com.rest.v2.issue.If the relationship from is optional, this is not a problem, since by convention, Code First won’t use cascade delete with an optional relationship.