AAA
I am experiencing a problem in the 3.5 UserApp Workflow. I wonder if anyone
else has come across this problem where the UserApp breaks when replacing
a boolean attribute with the same value that it already holds.


BBB
In my eDir Schema I have a non-mandatory boolean single valued attribute.
In the DAL the attribute in the Entity Definition has Edit Read View and
Enable Access

In the workflow, I have an Entity Activity which has Modify Type set to Replace
Value and Modify Value Expression set to True.


CCC
If the Entity Activity is performed when the object has false in the attribute,
then everything is OK and the attribute becomes True
If the Entity Activity is performed when the attribute is missing from the
object, then everything is OK and the attribute is initialised to True

BUT, if the Entity Activity is performed when the attribute is already set
to True, then the workflow fails with an exception (a snippet is shown at
the foot). This is not an eDirectory attribute definition problem because
if I use an IDM Policy Rule to set the attribute to True when it is already
True, then it works fine. It seems that the LDAP update via DAL interpretation
of what is permissable is different from the direct eDirectory update from
IDM. Is this the case or am I configuring something incorrectly?


DDD
The Exception snippet is for an NDS Error -614 "An attempt was made to add
an attribute value to an eDirectory object that already has an instance of
that attribute with the same value, without overwriting or deleting the existing
value". But my Entity Activity has Replace Value as its Modify Type so this
should take care of "overwriting or deleting the existing value".


BRgds - M




Snippet of Exception Trace from JBOSS

10:52:51,234 ERROR [VirtualDataAccess] Ldap error updating object: CN=2006111710
52342 05686d88d70247b48c9ce8c247412e9f xxxxxxxxxxxxxx,OU=yyyyyyyyyyyyyyyyyyyyyyy
,OU=zzzzzzzzzzzzzzzzzzzzzzzzzzzzz,OU=servers,O=srv s. Error: javax.naming.directo
ry.AttributeInUseException: [LDAP: error code 20 - NDS error: duplicate value
(-
614)]; remaining name 'CN=200611171052342 05686d88d70247b48c9ce8c247412e9f
xxxxx
xxxxxxxxx,OU=yyyyyyyyyyyyyyyyyyyyyyy,OU=zzzzzzzzzz zzzzzzzzzzzzzzzzzzz,OU=servers
,O=srvs'
javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - NDS
error
: duplicate value (-614)]; remaining name 'CN=200611171052342 05686d88d70247b48c
9ce8c247412e9f xxxxxxxxxxxxxx,OU=yyyyyyyyyyyyyyyyyyyyyyy,OU=zzzzz zzzzzzzzzzzzzz
zzzzzzzzz,OU=servers,O=srvs'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.jav a:2989)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCt x.java:2951)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCt x.java:2758)
at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapC tx.java:1441)