Hi Guys,
I created a process model which let the user inserts his information then save them to the database, it worked fine, but doesn't save the data to the database. When I did refresh I got this.
Discussion posts and replies are publicly visible
Hi,Can you please share what the error message reads?
An error occurred in executing an Activity Class.
Details: An error occurred while trying to write to the entity "Employee_DB" [id=f3650a76-b78b-4f7b-a711-d3d7efd05e08@4093, type=ES_Employee (id=4016)] (data store: ES_Employee_DS). Details: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): ESEmployeeDT6506 Data: TypedValue[it=4016,v={Ali,<null>,AA@gmail.com,05347384882,Low-Code Team}]
Recommended Action: Examine the activity class to correct the error and then resume.
I got this on my email.
Make your primary key as an auto generated value. it will solve your problem. Go to your CDT click on the key icon of the primary column and select autogenerated checkbox and publish the cdt again.
I already did this, but same result.
Can you please share what data are you trying to save.you can go to process details>variables and then find the variable that you're using to write data to the database.
[Emp_ID=, Emp_Name=Ali, Email=AB@gmail.com, PhoneNO=112525, Department=IT]
those the data I tried to save into the database.
If you're still getting the same error then either your DB table or your CDT are not configured properly for auto-incrementing primary key. Just in case, also, you should try a new process instance, as i think re-starting the failed node in the existing process instance might still be trying to use the old version of your CDT assuming it was updated.
Emp_Id is Blank.
I made it auto generated.
I made new process model, but still the same thing.
I already configured the id as the primary key.