I have a JDBC driver policy in the Input Transform that builds input
documents into a local variable $eventxml and submits the documents via
the destCommandProcessor to eDirectory.

I would like to capture any errors and the $eventxml that generated the
error.

Normally you would capture this in the Input Transform; however, since
my destCommandProcessor is issuing the ‘status’ I can’t seem to capture
it (chicken and egg thing!).

I have tried various syntax and can get it. My last attempt below was
just to see if see the operation mode… I hope it is doable!

Can someone shed some light on what syntax could be used to capture the
error message?

Thank you

Gary


Example trace snippet of $event and error:


10:47:36 9D0FCB90 Drvrs: HRIS ST: Action:
do-set-local-variable("eventresult",scope="policy",arg-node-set(token-xpath("cmd:execute($destCommandProcessor,
$eventxml)"))).
10:47:36 9D0FCB90 Drvrs: HRIS ST:
arg-node-set(token-xpath("cmd:execute($destCommandProcessor,
$eventxml)"))
10:47:36 9D0FCB90 Drvrs: HRIS ST:
token-xpath("cmd:execute($destCommandProcessor, $eventxml)")
10:47:36 9D0FCB90 Drvrs: HRIS ST: Direct command from policy
10:47:36 9D0FCB90 Drvrs: HRIS ST:
<nds dtdversion="3.5" ndsversion="8.x">
<input>
<modify dest-dn="\DEVIV\pbc\users\ISS\ABlastest">
<modify-attr attr-name="PBCext">
<remove-all-values/>
<add-value>
<value type="string">Ext 823</value>
</add-value>
</modify-attr>
<modify-attr attr-name="mobile">
<remove-all-values/>
<add-value>
<value type="string">555 123-1234</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>
10:47:36 9D0FCB90 Drvrs: HRIS ST: Pumping XDS to eDirectory.
10:47:36 9D0FCB90 Drvrs: HRIS ST: Performing operation modify for
\DEVIV\pbc\users\ISS\ABlastest.
10:47:36 9D0FCB90 Drvrs: HRIS ST: Processing returned document.
10:47:36 9D0FCB90 Drvrs: HRIS ST: Processing operation <status> for .
10:47:36 9D0FCB90 Drvrs: HRIS ST:
DirXML Log Event -------------------
Driver: \DEVIV\PBC\SERVICES\Driver Set\HRIS-JDBC
Channel: Subscriber
Status: Error
Message: Code(-9010) An exception occurred: novell.jclient.JCException:
nameToID -601 ERR_NO_SUCH_ENTRY
10:47:36 9D0FCB90 Drvrs: HRIS ST: Direct command from policy result
10:47:36 9D0FCB90 Drvrs: HRIS ST:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.10.4747">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status event-id="0" level="error">Code(-9010) An exception occurred:
novell.jclient.JCException: nameToID -601
ERR_NO_SUCH_ENTRY<application>DirXML</application>
<module>HRIS-JDBC</module>
<object-dn></object-dn>
<component>Subscriber</component>
</status>
</output>
</nds>
10:47:36 9D0FCB90 Drvrs: HRIS ST: Token Value: {/}.
10:47:36 9D0FCB90 Drvrs: HRIS ST: Arg Value: {/}.
10:47:36 9D0FCB90 Drvrs: HRIS ST: Action: do-if().
10:47:36 9D0FCB90 Drvrs: HRIS ST: Evaluating conditions.
10:47:36 9D0FCB90 Drvrs: HRIS ST: (if-xpath true
"$current-node/jdbc:column[@jdbc:name="CHANGEFG"]/jdbc:value/text() =
"I"") = FALSE.
10:47:36 9D0FCB90 Drvrs: HRIS ST: Performing else actions.
10:47:36 9D0FCB90 Drvrs: HRIS ST: Action:
do-set-op-property("eventRow","RowNumber was =
"+token-xpath("$current-node/jdbc:column[@jdbc:name="PK_HRISVAULTSEQ"]/jdbc:value")+"Row
Content: "+token-local-variable("eventxml")).
10:47:36 9D0FCB90 Drvrs: HRIS ST: arg-string("RowNumber was =
"+token-xpath("$current-node/jdbc:column[@jdbc:name="PK_HRISVAULTSEQ"]/jdbc:value")+"Row
Content: "+token-local-variable("eventxml"))
10:47:36 9D0FCB90 Drvrs: HRIS ST: token-text("RowNumber was = ")
10:47:36 9D0FCB90 Drvrs: HRIS ST:
token-xpath("$current-node/jdbc:column[@jdbc:name="PK_HRISVAULTSEQ"]/jdbc:value")
10:47:36 9D0FCB90 Drvrs: HRIS ST: Token Value: "26".
10:47:36 9D0FCB90 Drvrs: HRIS ST: token-text("Row Content: ")
10:47:36 9D0FCB90 Drvrs: HRIS ST: token-local-variable("eventxml")
10:47:36 9D0FCB90 Drvrs: HRIS ST: Token Value: "Ext 823555 123-1234".
10:47:36 9D0FCB90 Drvrs: HRIS ST: Arg Value: "RowNumber was = 26Row
Content: Ext 823555 123-1234".
10:47:36 9D0FCB90 Drvrs: HRIS ST: Action: do-if().
10:47:36 9D0FCB90 Drvrs: HRIS ST: Evaluating conditions.
10:47:36 9D0FCB90 Drvrs: HRIS ST: (if-operation equal "status") =
FALSE.
10:47:36 9D0FCB90 Drvrs: HRIS ST: Performing else actions.
10:47:36 9D0FCB90 Drvrs: HRIS ST: Action:
do-set-local-variable("eventStatus",scope="policy",token-xpath("@level")).
10:47:36 9D0FCB90 Drvrs: HRIS ST: arg-string(token-xpath("@level"))
10:47:36 9D0FCB90 Drvrs: HRIS ST: token-xpath("@level")
10:47:36 9D0FCB90 Drvrs: HRIS ST: Token Value: "".
10:47:36 9D0FCB90 Drvrs: HRIS ST: Arg Value: "".
10:47:36 9D0FCB90 Drvrs: HRIS ST: Action:
do-set-local-variable("eventxml",scope="policy","").
10:47:36 9D0FCB90 Drvrs: HRIS ST: arg-string("")
10:47:36 9D0FCB90 Drvrs: HRIS ST: token-text("")
10:47:36 9D0FCB90 Drvrs: HRIS ST: Arg Value: "".


--
gholdefe
------------------------------------------------------------------------
gholdefe's Profile: http://forums.novell.com/member.php?userid=35453
View this thread: http://forums.novell.com/showthread.php?t=440594