Skip to main content
samudralak7126
December 24, 2022
Solved

WRITE TO MULTIPLE DATA STORE ENTITY

  • December 24, 2022
  • 4 replies
  • 0 views

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 ?

Best answer by konduruc733182

Looks like you are not configuring the Entity & Data for your 1. Employee Details.

Its a null exception. Make sure your employee details have the value.

4 replies

konduruc733182
December 24, 2022

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

samudralak7126
December 24, 2022

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)

konduruc733182
December 24, 2022

Looks like you are not configuring the Entity & Data for your 1. Employee Details.

Its a null exception. Make sure your employee details have the value.