Hi all,

Addind some new features to my delimited text driver, i have a problem
executing part of the code.

The goal of the driver is to create or modify Organizational Unit, from
a CSV File, to the metadirectory.
My problem is:

When i modify an existing Organizational Unit, the Command Transform
policies are skipped. That's ... weird...
In fact, the modifications aren't even operated to the Organizational
unit. it not seems to be a matching issue because i can see that the
driver suceeds to match the Organizational Unit. The Policy must be
linked correctly because it's well executed when the object is and
"add". It's skipped only for "modify" operations.
Do you guys have any idea?

Thank you.

Here is the part of the tracefile showing the end of the Event Transform
policies, the matching Policy, and the end of the process (skipping
command...):


Code:
--------------------
[01/28/14 14:59:06.069]:HR Access - Organizational Units PT: arg-string(token-op-attr("OU"))
[01/28/14 14:59:06.069]:HR Access - Organizational Units PT: token-op-attr("OU")
[01/28/14 14:59:06.070]:HR Access - Organizational Units PT: Token Value: "6748".
[01/28/14 14:59:06.070]:HR Access - Organizational Units PT: Arg Value: "6748".
[01/28/14 14:59:06.070]:HR Access - Organizational Units PT:Policy returned:
[01/28/14 14:59:06.070]:HR Access - Organizational Units PT:
<nds dtdversion="1.1" ndsversion="8.6" xml:space="default">
<input>
<add class-name="Organizational Unit" src-dn="">
<association/>
<add-attr attr-name="OU">
<value type="string">6748</value>
</add-attr>
<add-attr attr-name="attLabel">
<value type="string">MYORGNAME</value>
</add-attr>
<add-attr attr-name="description">
<value type="string">MYORDESC</value>
</add-attr>
<add-attr attr-name="attOU">
<value type="string">\QUALTREE\data\Organizations\BL\23\1 6008</value>
</add-attr>
<add-attr attr-name="attSiteCode">
<value type="string">019</value>
</add-attr>
<add-attr attr-name="L">
<value type="string">BOO</value>
</add-attr>
<add-attr attr-name="attType">
<value type="string">C12</value>
</add-attr>
<add-attr attr-name="attState">
<value type="string">true</value>
</add-attr>
<add-attr attr-name="attCompanyHRCode">
<value type="string">BL</value>
</add-attr>
</add>
</input>
</nds>
[01/28/14 14:59:06.073]:HR Access - Organizational Units PT:Missing valid association or dest-dn.
[01/28/14 14:59:06.073]:HR Access - Organizational Units PT:Applying publisher filter.
[01/28/14 14:59:06.074]:HR Access - Organizational Units PT:Publisher processing add for .
[01/28/14 14:59:06.074]:HR Access - Organizational Units PT:Applying object matching policies.
[01/28/14 14:59:06.074]:HR Access - Organizational Units PT:Applying policy: %+C%14CBLGDTXUSBASE-pub-mp%-C.
[01/28/14 14:59:06.075]:HR Access - Organizational Units PT: Applying to add #1.
[01/28/14 14:59:06.075]:HR Access - Organizational Units PT: Evaluating selection criteria for rule 'Match based on OU'.
[01/28/14 14:59:06.075]:HR Access - Organizational Units PT: Rule selected.
[01/28/14 14:59:06.075]:HR Access - Organizational Units PT: Applying rule 'Match based on OU'.
[01/28/14 14:59:06.076]:HR Access - Organizational Units PT: Action: do-find-matching-object(scope="subtree",arg-dn(token-global-variable("Organizations.container")+"\"+token-local-variable("lvCompanyHRCode")),arg-match-attr("OU")).
[01/28/14 14:59:06.076]:HR Access - Organizational Units PT: arg-dn(token-global-variable("Organizations.container")+"\"+token-local-variable("lvCompanyHRCode"))
[01/28/14 14:59:06.076]:HR Access - Organizational Units PT: token-global-variable("Organizations.container")
[01/28/14 14:59:06.077]:HR Access - Organizational Units PT: Token Value: "data\Organizations".
[01/28/14 14:59:06.077]:HR Access - Organizational Units PT: token-text("\")
[01/28/14 14:59:06.077]:HR Access - Organizational Units PT: token-local-variable("lvCompanyHRCode")
[01/28/14 14:59:06.077]:HR Access - Organizational Units PT: Token Value: "BL".
[01/28/14 14:59:06.078]:HR Access - Organizational Units PT: Arg Value: "data\Organizations\BL".
[01/28/14 14:59:06.078]:HR Access - Organizational Units PT: arg-match-attr("OU")
[01/28/14 14:59:06.078]:HR Access - Organizational Units PT: Query from policy
[01/28/14 14:59:06.078]:HR Access - Organizational Units PT:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.2.1">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<query class-name="Organizational Unit" dest-dn="data\Organizations\BL" scope="subtree">
<search-class class-name="Organizational Unit"/>
<search-attr attr-name="OU">
<value type="string">6748</value>
</search-attr>
<read-attr/>
</query>
</input>
</nds>
[01/28/14 14:59:06.080]:HR Access - Organizational Units PT: Pumping XDS to eDirectory.
[01/28/14 14:59:06.080]:HR Access - Organizational Units PT: Performing operation query for data\Organizations\BL.
[01/28/14 14:59:06.080]:HR Access - Organizational Units PT: --JCLNT-- \QUALTREE\system\DriverSet\HR Access - Organizational Units - Publisher : Duplicating : context = 1180565655, tempContext = 1180565664
[01/28/14 14:59:06.090]:HR Access - Organizational Units PT: --JCLNT-- \QUALTREE\system\DriverSet\HR Access - Organizational Units - Publisher : Calling free on tempContext = 1180565664
[01/28/14 14:59:06.090]:HR Access - Organizational Units PT: Query from policy result
[01/28/14 14:59:06.090]:HR Access - Organizational Units PT:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.2.1">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="Organizational Unit" event-id="0" qualified-src-dn="O=data\OU=Organizations\OU=BL\OU=23\OU=6002\OU =5216\OU=6745\OU=6748" src-dn="\QUALTREE\data\Organizations\BL\23\6002\5216\6 745\6748" src-entry-id="33820">
<association state="associated"></association>
</instance>
<status event-id="0" level="success"></status>
</output>
</nds>
[01/28/14 14:59:06.092]:HR Access - Organizational Units PT: Match found: src-dn='\QUALTREE\data\Organizations\BL\23\6002\5216\6 745\6748'
[01/28/14 14:59:06.092]:HR Access - Organizational Units PT:Policy returned:
[01/28/14 14:59:06.092]:HR Access - Organizational Units PT:
<nds dtdversion="1.1" ndsversion="8.6" xml:space="default">
<input>
<add class-name="Organizational Unit" dest-dn="\QUALTREE\data\Organizations\BL\23\6002\5216\6 745\6748" dest-entry-id="33820" src-dn="">
<association/>
<add-attr attr-name="OU">
<value type="string">6748</value>
</add-attr>
<add-attr attr-name="attLabel">
<value type="string">MYORGNAME</value>
</add-attr>
<add-attr attr-name="description">
<value type="string">MYORDESC</value>
</add-attr>
<add-attr attr-name="attOU">
<value type="string">\QUALTREE\data\Organizations\BL\23\1 6008</value>
</add-attr>
<add-attr attr-name="attSiteCode">
<value type="string">019</value>
</add-attr>
<add-attr attr-name="L">
<value type="string">BOO</value>
</add-attr>
<add-attr attr-name="attType">
<value type="string">C12</value>
</add-attr>
<add-attr attr-name="attState">
<value type="string">true</value>
</add-attr>
<add-attr attr-name="attCompanyHRCode">
<value type="string">BL</value>
</add-attr>
<operation-data/>
</add>
</input>
</nds>
[01/28/14 14:59:06.096]:HR Access - Organizational Units PT:A match found, using \QUALTREE\data\Organizations\BL\23\6002\5216\6745\ 6748.
[01/28/14 14:59:06.096]:HR Access - Organizational Units PT:Merging eDirectory and application values.
[01/28/14 14:59:06.097]:HR Access - Organizational Units PT:
DirXML Log Event -------------------
Driver: \QUALTREE\system\DriverSet\HR Access - Organizational Units
Channel: Publisher
Object: (\QUALTREE\data\Organizations\BL\23\6002\5216\6745 \6748)
Status: Success
[01/28/14 14:59:06.098]:HR Access - Organizational Units PT:Fixing up association references.
[01/28/14 14:59:06.098]:HR Access - Organizational Units PT:Applying schema mapping policies to output.
[01/28/14 14:59:06.098]:HR Access - Organizational Units PT:Applying policy: %+C%14CBLGDTXUSBASE-smp%-C.
[01/28/14 14:59:06.099]:HR Access - Organizational Units PT:No output transformation policies.
[01/28/14 14:59:06.099]:HR Access - Organizational Units PT:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.2.1">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status level="success"><operation-data/>
<application>DirXML</application>
<module>HR Access - Organizational Units</module>
<object-dn> (\QUALTREE\data\Organizations\BL\23\6002\5216\6745 \6748)</object-dn>
<component>Publisher</component>
</status>
</output>
</nds>
[01/28/14 14:59:06.100]:HR Access - Organizational Units ST:Received state change event.
[01/28/14 14:59:06.100]:HR Access - Organizational Units PT:HR Access - Organizational Units: Renamed file path:/var/novell/unites_structurelles/input/testMove.csv.bak
--------------------


--
sniceper
------------------------------------------------------------------------
sniceper's Profile: https://forums.netiq.com/member.php?userid=5188
View this thread: https://forums.netiq.com/showthread.php?t=49822