Hi,

I'm doing some test with Syncope 1.1.7.
I'm trying to sync users from AD Connector. During sync there are some entries 
that generate an exception,
due to a correct unique attribute violation.  (e.g. two users that has the same 
Full Name mapped on a schema attribute defined as unique)

In Syncope Execution messages I get a message like this one:

Users failed to create: CREATE FAILURE (id/name): null/null with message: The 
transaction has been rolled back.  See the nested exceptions for details on the 
errors that occurred.; nested exception is <openjpa-2.2.2-r422266:1468616 fatal 
store error> org.apache.openjpa.persistence.EntityExistsException: The 
transaction has been rolled back.  See the nested exceptions for details on the 
errors that occurred.
FailedObject: 
org.apache.syncope.core.persistence.beans.user.UAttrUniqueValue@52ded8f8

The only way I have found to understand which entries are generating this error 
it's to open  the core.log file
where I can find the useful info about which user generated this exception 
(a00001in my case)

16:45:40.209 ERROR org.apache.syncope.core.sync.impl.SyncopeSyncResultHandler - 
Could not create USER a00001
org.springframework.dao.DataIntegrityViolationException: The transaction has 
been rolled back.  See the nested exceptions for details on the errors that 
occurred.; nested exception is <openjpa-2.2.2-r
422266:1468616 fatal store error> 
org.apache.openjpa.persistence.EntityExistsException: The transaction has been 
rolled back.  See the nested exceptions for details on the errors that occurred.
FailedObject: 
org.apache.syncope.core.persistence.beans.user.UAttrUniqueValue@52ded8f8
        at 
org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:313)...

Is there another way (for a Syncope administrator) to know such info?
Do you think it's possible/useful add such information in Execution messages ?

Thanks.

Best regards,
Denis.

Reply via email to