WRITE TO MULTIPLE DATA STORE ENTITY

Certified Associate Developer

WHEN I RUN THE PROCESS MODEL I GOT THIS ERROR , HOW CAN I RESOLVE THIS ERROR :.An error occurred while trying to write to the data store [K_EMPLOYEE_DETAILS_DSE].  No values have been written. Details: org.hibernate.exception.ConstraintViolationException: could not execute statement (APNX-1-4208-004) .

CAN  ANY ONE PLEASE  TELL ME WHAT IS THE PROBLEM ?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hello Samudrala, Can you show us how you have configured your Write to multiple data store entities.

  • 0
    Certified Associate Developer
    in reply to Konduru Chaitanya

    I AM TAKING 3 EMPLOYEE FORMS :

    1. EMPLOYEE DETAILS

    2.EMPLOYEE PERSONAL DETAILS

    3.EMPLOYEE ADDRESS DETAILS  

    I AM CONFIGURING THIS TWO IN  ONE COMPONENT (WRITE TO TO DATA STORE ENTITY ).

    I WRITE THIS CODE IN MULTIPLE DATA STORE ENTITY COMPONENT 

    = {
    a!entityData(
    entity: cons!E_EMPLOYEE_PERSONAL_DTLS_CONSTANT,
    data: { pv!E_EMPLOYEE_PERSONAL_DTLS }
    ),
    a!entityData(
    entity: cons!E_EMPLOYEE_ADDRESS_DTLS,
    data: { pv!E_EMPLOYEE_ADDRESS_DTLS_INTERFACE }
    )
    },

    THIS IS MY DATA STORE ENTITY : K_EMPLOYEE_DETAILS_DSE , I ADDED THOSE 3 ENTITYS. 

    I GOT THIS ERROR : An error occurred while trying to write to the data store [K_EMPLOYEE_DETAILS_DSE].  No values have been written. Details: org.hibernate.exception.ConstraintViolationException: could not execute statement (APNX-1-4208-004)

Reply
  • 0
    Certified Associate Developer
    in reply to Konduru Chaitanya

    I AM TAKING 3 EMPLOYEE FORMS :

    1. EMPLOYEE DETAILS

    2.EMPLOYEE PERSONAL DETAILS

    3.EMPLOYEE ADDRESS DETAILS  

    I AM CONFIGURING THIS TWO IN  ONE COMPONENT (WRITE TO TO DATA STORE ENTITY ).

    I WRITE THIS CODE IN MULTIPLE DATA STORE ENTITY COMPONENT 

    = {
    a!entityData(
    entity: cons!E_EMPLOYEE_PERSONAL_DTLS_CONSTANT,
    data: { pv!E_EMPLOYEE_PERSONAL_DTLS }
    ),
    a!entityData(
    entity: cons!E_EMPLOYEE_ADDRESS_DTLS,
    data: { pv!E_EMPLOYEE_ADDRESS_DTLS_INTERFACE }
    )
    },

    THIS IS MY DATA STORE ENTITY : K_EMPLOYEE_DETAILS_DSE , I ADDED THOSE 3 ENTITYS. 

    I GOT THIS ERROR : An error occurred while trying to write to the data store [K_EMPLOYEE_DETAILS_DSE].  No values have been written. Details: org.hibernate.exception.ConstraintViolationException: could not execute statement (APNX-1-4208-004)

Children