Hi,

RACF Driver is sending TSO commands twice to target due to this we are getting errors and user creation was not getting complete.

From Driver Log-- Sending user search command to RACF:

<input>
<query class-name="User" dest-dn="Z8LND" event-id="0" scope="subtree">
<search-class class-name="User"/>
<search-attr attr-name="DirXML-RACF-userid">
<value naming="true" timestamp="1495618967#62" type="string">z8lnd</value>
</search-attr>
<read-attr/>
<add-attr attr-name="RACFCMD">
<value is-sensitive="true"><!-- content suppressed --></value>
</add-attr>
<add-attr attr-name="RACFCMD">
<value is-sensitive="true"><!-- content suppressed --></value>
</add-attr>
</query>
</input>
From RACF Log-- Command is executing twice:

23 Aug 2017 15:33:05 -->TSO: SAFQUERY SCOPE(SUBTREE) SEARCHCLASSES(USER) SEARCHATTRS('DIRXML-RACF-USERID=Z8LND') EVENTID(0) NOREADA
TTRS
23 Aug 2017 15:33:05 -->TSO: SAFQUERY SCOPE(SUBTREE) SEARCHCLASSES(USER) SEARCHATTRS('DIRXML-RACF-USERID=Z8LND') EVENTID(0) NOREADA
TTRS

From Driver LogCommand sending to racf to create user
<input>
<modify class-name="User" event-id="KMDDBS0015-NDS#20170823133306#1#1:448f5316-5687-497f-a465-0bedfa1973c1" from-merge="true" qualified-src-dn="O=KMD\OU=users\OU=contractors\CN=z8lnd" src-dn="\KMDIDV\KMD\users\contractors\z8lnd" src-entry-id="325668">
<association>USER\Z8LND</association>
<modify-attr attr-name="DirXML-RACF-userid">
<remove-all-values/>
<add-value>
<value naming="true" timestamp="1495618967#62" type="string">z8lnd</value>
</add-value>
</modify-attr>
<modify-attr attr-name="DirXML-RACF-name">
<remove-all-values/>
<add-value>
<value timestamp="1495618967#34" type="string">Donald Duck</value>
</add-value>
</modify-attr>
<modify-attr attr-name="DirXML-RACF-revoked">
<remove-all-values/>
<add-value>
<value timestamp="1495618967#125" type="state">false</value>
</add-value>
</modify-attr>
<operation-data AccountTracking-AccountStatusChanged="true" AccountTracking-AppAccountStatus="-" AccountTracking-DirXML-RACF-userid="z8lnd" AccountTracking-IdvAccountStatus="A" AccountTracking-ObjectDN="\KMDIDV\KMD\users\contractors\z8lnd" AccountTracking-Operation="modify" AccountTracking-association="USER\Z8LND" success.do-find-matching-object="USER\Z8LND"/>
<modify-attr attr-name="RACFCMD">
<add-value>
<value is-sensitive="true"><!-- content suppressed --></value>
</add-value>
</modify-attr>
<modify-attr attr-name="RACFCMD">
<add-value>
<value is-sensitive="true"><!-- content suppressed --></value>
</add-value>
</modify-attr>
</modify>
</input>

From RACF Log-- command is executing twice. When executing second time it throws the error.
23 Aug 2017 15:33:07 ZPREUSR version:0.1 running on :BCT13
23 Aug 2017 15:33:07 Default group: <Z61552>.
23 Aug 2017 15:33:07 Owner: <Z19AA>.
23 Aug 2017 15:33:07 Z00000 top group found
23 Aug 2017 15:33:07 ZPREUSR: RC=0
23 Aug 2017 15:33:07 -->TSO: ADDUSER Z8LND NAME( 'DONALD DUCK' ) DFLTGRP( Z61552 ) OWNER( Z19AA ) TSO(ACCTNUM( I9398 ) MSGCLASS(
X ) PROC( TSOPROC ) SIZE( 8192 ) UNIT( SYSALLDA ) ) DATA( 'NVAMID06' ) NOPASSWORD
23 Aug 2017 15:33:07 -->TSO: ADDUSER Z8LND NAME( 'DONALD DUCK' ) DFLTGRP( Z61552 ) OWNER( Z19AA ) TSO(ACCTNUM( I9398 ) MSGCLASS(
X ) PROC( TSOPROC ) SIZE( 8192 ) UNIT( SYSALLDA ) ) DATA( 'NVAMID06' ) NOPASSWORD
23 Aug 2017 15:33:07 INVALID USERID, Z8LND
23 Aug 2017 15:33:07 MISSING TSO ACCOUNT NUMBER+
23 Aug 2017 15:33:07 MISSING DEFAULT ACCTNUM FOR THE USER
23 Aug 2017 15:33:07 IDMSUB script is finished
23 Aug 2017 15:33:07 IDMSUB script is being executed

Regards
Siva ram T