Actions
Defect #1473
closedManually deleted contract slice causes failure of reconcilation
Status:
Closed
Priority:
Normal
Assignee:
Vít Švanda
Category:
Contractual relationship
Target version:
Start date:
01/27/2019
Due date:
% Done:
100%
Estimated time:
Affected versions:
Owner:
Description
Version: 9.3.4
Steps to reproduce:- Synchronize time slices from HR system
- Manually delete one of the synchronized slices
- Run the reconcilation of slices
- The reconcilation fails when it starts to process missing accounts (after all existing are successfully processed). The deleted slice falls to "Unknown state". No other missing accounts are processed.
The reason is that the AccContractSliceAccount and AccAccount are not deleted together with manually deleted slice.
The problem occurs only for manually deleted slices. Deleting contract slices by reconcilation works fine.
The error in the reconcilation log:
2019-01-27T00:24:59.738+01:00: System entity (33a9e372-0781-4816-be20-57f7b5ac0c38) for this UID (9999_0_2019_1_25) was found. We try to find account for this system entity ------------------------- 2019-01-27T00:24:59.742+01:00: org.springframework.orm.jpa.JpaObjectRetrievalFailureException: Unable to find eu.bcvsolutions.idm.core.model.entity.IdmContractSlice with id d95bcc96-f0e4-4486-8d92-63a2146a008c; nested exception is javax.persistence.EntityNotFoundException: Unable to find eu.bcvsolutions.idm.core.model.entity.IdmContractSlice with id d95bcc96-f0e4-4486-8d92-63a2146a008c ..... ------------------------- 2019-01-27T00:24:59.743+01:00: Operation count for [UNKNOWN] is [1] ------------------------- 2019-01-27T00:24:59.744+01:00: org.springframework.orm.jpa.JpaObjectRetrievalFailureException: Unable to find eu.bcvsolutions.idm.core.model.entity.IdmContractSlice with id d95bcc96-f0e4-4486-8d92-63a2146a008c; nested exception is javax.persistence.EntityNotFoundException: Unable to find eu.bcvsolutions.idm.core.model.entity.IdmContractSlice with id d95bcc96-f0e4-4486-8d92-63a2146a008c at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:389)
Actions