On 05/02/2012 03:46 PM, novhyten wrote:
>
> Hello, all.
> From within a workflow, I need to modify attributes on an existing user
> object in the Vault. I'm using the Entity activity for this, but am
> having problems. For testing, I'm modifying ("append all values") a
> phone number in Telephone Number. The object's Telephone Number
> attribute starts with no value.
>
> The Entity activity:
> <provision-activity activity-id="GrantEntity" category="nonit_asset"
> entity-type="user" operation="grant"
> set-completed-approval-status="true">
> <display-name xml:lang="en">Grant App-Priv</display-name>
> </provision-activity>
>
> Running the workflow, I get errors in Server.log, saying:
>
> " ERROR [RBPM]
> [com.novell.srvprv.impl.vdata.model.VirtualDataAcce ss:createEntity] Ldap
> error creating object: cn=personaSAU,ou=cuentas,o=data. Object already
> exists.
> javax.naming.NameAlreadyBoundException: [LDAP: error code 68 - NDS
> error: entry already exists (-606)]; "
>
> then
>
> 2012-05-02 12:07:11,347 INFO [STDOUT] (pool-13-thread-1) INFO [RBPM]
> [com.novell.soa.af.impl.LogEvent:logAFEvent] [Provision_Failure]
> Initiated by System, Process ID: 8b69d94b849b4f23aeec2fe26ba83d02,
> Process Name:
> cn=DefaultApp-PrivAssignment,cn=RequestDefs,cn=AppConfig,cn=User Application,cn=driverset1,o=system:313,
> Activity: GrantEntity, Recipient: cn=uaadmin,ou=sa,o=data
> 2012-05-02 12:07:11,391 INFO [STDOUT] (pool-13-thread-1) 11383360
> [pool-13-thread-1] INFO com.novell.soa.af.impl.LogEvent -
> [Provision_Failure] Initiated by System, Process ID:
> 8b69d94b849b4f23aeec2fe26ba83d02, Process Name:
> cn=DefaultApp-PrivAssignment,cn=RequestDefs,cn=AppConfig,cn=User Application,cn=driverset1,o=system:313,
> Activity: GrantEntity, Recipient: cn=uaadmin,ou=sa,o=data
> 2012-05-02 12:07:11,410 INFO [STDOUT] (pool-13-thread-1) ERROR [RBPM]
> [com.novell.soa.af.impl.LogEvent:logError] [Workflow_Error] Initiated by
> cn=uaadmin,ou=sa,o=data, Error Message: Ldap error creating object:
> cn=personaSAU,ou=cuentas,o=data. Object already exists., Process ID:
> 8b69d94b849b4f23aeec2fe26ba83d02, Process Name:
> cn=DefaultApp-PrivAssignment,cn=RequestDefs,cn=AppConfig,cn=User Application,cn=driverset1,o=system:313,
> Activity: GrantEntity, Recipient: cn=uaadmin,ou=sa,o=data
> 2012-05-02 12:07:11,451 INFO [STDOUT] (pool-13-thread-1) 11383423
> [pool-13-thread-1] ERROR com.novell.soa.af.impl.LogEvent -
> [Workflow_Error] Initiated by cn=uaadmin,ou=sa,o=data, Error Message:
> Ldap error creating object: cn=personaSAU,ou=cuentas,o=data. Object
> already exists., Process ID: 8b69d94b849b4f23aeec2fe26ba83d02, Process
> Name:
> cn=DefaultApp-PrivAssignment,cn=RequestDefs,cn=AppConfig,cn=User Application,cn=driverset1,o=system:313,
> Activity: GrantEntity, Recipient: cn=uaadmin,ou=sa,o=data
>
>
> From the docs, it says that if an object already exists, the create is
> turned into a modify. I don't see that happening...do I need to flip a
> setting somewhere to make this a modify?
>
> TIA,
>
> ~Howard
>
> Howard Hyten
> Austin, TX
>
>

Greetings Howard,
It all depends upon the attribute(s) you have a value in the Entity
Activity. For example, you can not create the dn a second time.

--
Sincerely,
Steven Williams
Lead Software Engineer
NetIQ