com.clidentity.exceptions.DuplicateException: Error executing Cypher "Neo.ClientError.Schema.ConstraintValidationFailed"; Code: Neo.ClientError.Schema.ConstraintValidationFailed; Description: Node 6 already exists with label Profile and property "profileName"=[Cricket]

GitHub | akandach | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Unique Constraint Error not propagating with @Index

    GitHub | 6 months ago | akandach
    com.clidentity.exceptions.DuplicateException: Error executing Cypher "Neo.ClientError.Schema.ConstraintValidationFailed"; Code: Neo.ClientError.Schema.ConstraintValidationFailed; Description: Node 6 already exists with label Profile and property "profileName"=[Cricket]

    Root Cause Analysis

    1. com.clidentity.exceptions.DuplicateException

      Error executing Cypher "Neo.ClientError.Schema.ConstraintValidationFailed"; Code: Neo.ClientError.Schema.ConstraintValidationFailed; Description: Node 6 already exists with label Profile and property "profileName"=[Cricket]

      at com.clidentity.service.ProfileService.upsert()
    2. com.clidentity.service
      ProfileService$$FastClassBySpringCGLIB$$ed6879bf.invoke
      1. com.clidentity.service.ProfileService.upsert(ProfileService.java:120)
      2. com.clidentity.service.ProfileService$$FastClassBySpringCGLIB$$ed6879bf.invoke(<generated>)
      2 frames
    3. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      1 frame
    4. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      2 frames
    5. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:280)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      3 frames
    6. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)
      2 frames
    7. com.clidentity.service
      ProfileService$$EnhancerBySpringCGLIB$$dafaed6.upsert
      1. com.clidentity.service.ProfileService$$EnhancerBySpringCGLIB$$dafaed6.upsert(<generated>)
      1 frame
    8. com.clidentity.rest
      ProfileRestController$$FastClassBySpringCGLIB$$ed6f9559.invoke
      1. com.clidentity.rest.ProfileRestController.create(ProfileRestController.java:81)
      2. com.clidentity.rest.ProfileRestController$$FastClassBySpringCGLIB$$ed6f9559.invoke(<generated>)
      2 frames
    9. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      1 frame