IDM12 Absent Member.
Absent Member.
232 views

WorkOrder Driver Destination DN Error


Hello,

I am trying to create a simple WorkOrder driver but I am running into
an issue when creating the Destination DN.

I am receiving the following error:
Message: Code(-9188) Error in
vnd.nds.stream://DEV-TEST/TEST/services/DriverSet/WorkOrder+Driver/Subscriber/Disabled+Accounts#XmlData:32:
Invalid variable name: 'TEST\services\DriverSet\WorkOrder\Disabled
Accounts -JohnDoe-123'.

From what I have read I need to add the Driver Object Name at the
beginning of the string, I have tried numerous methods of creating this
string.

Below is a code snippet:

<do-set-local-variable name="WoDestDN" scope="policy">
<arg-string>
<token-text xml:space="perserve">\WorkOrder</token-text>
<token-text xml:space="preserve">\Disabled Accounts
-</token-text>
<token-attr name="CN"/>
<token-text xml:space="preserve">-123</token-text>
</arg-string>
</do-set-local-variable>
<do-add-dest-object class-name="DirXML-WorkOrder" when="after">
<arg-dn>
<token-local-variable name="$WoDestDN$"/>
</arg-dn>
</do-add-dest-object>

Log Error:

.804]:WorkOrders ST:Submitting add to subscriber shim.
.804]:WorkOrders ST:Applying command transformation policies.
.804]:WorkOrders ST:Applying policy: %+C%14CDisabled Accounts%-C.
.804]:WorkOrders ST: Applying to add #1.
.805]:WorkOrders ST: Evaluating selection criteria for rule
'Disabled Accounts'.
.805]:WorkOrders ST: (if-class-name equal "User") = TRUE.
.805]:WorkOrders ST: (if-op-attr 'Login Disabled' changing-to
"true") = TRUE.
.805]:WorkOrders ST: Rule selected.
.805]:WorkOrders ST: Applying rule 'Disabled Accounts'.
.805]:WorkOrders ST: Action:
do-move-src-object(arg-dn("TEST\DisabledAccount")).
.806]:WorkOrders ST: arg-dn("TEST\DisabledAccount")
.806]:WorkOrders ST: token-text("TEST\DisabledAccount")
.806]:WorkOrders ST: Arg Value: "TEST\DisabledAccount".
.806]:WorkOrders ST: Action:
do-set-local-variable("destDN",scope="policy","TEST\WorkOrders").
.806]:WorkOrders ST: arg-string("TEST\WorkOrders")
.807]:WorkOrders ST: token-text("TEST\WorkOrders")
.807]:WorkOrders ST: Arg Value: "TEST\WorkOrders".
.807]:WorkOrders ST: Action:
do-set-local-variable("WoDestDN",scope="policy","TEST\services\DriverSet\WorkOrder"+"\Disabled
Accounts -"+token-attr("CN")+"-123").
.807]:WorkOrders ST:
arg-string("TEST\services\DriverSet\WorkOrder"+"\Disabled Accounts
-"+token-attr("CN")+"-123")
.807]:WorkOrders ST:
token-text("TEST\services\DriverSet\WorkOrder")
.808]:WorkOrders ST: token-text("\Disabled Accounts -")
.808]:WorkOrders ST: token-attr("CN")
.808]:WorkOrders ST: Token Value: "JohnDoe".
.808]:WorkOrders ST: token-text("-123")
.808]:WorkOrders ST: Arg Value:
"TEST\services\DriverSet\WorkOrder\Disabled Accounts -JohnDoe-123".
.808]:WorkOrders ST: Action:
do-add-dest-object(class-name="DirXML-WorkOrder",when="after",arg-dn(token-local-variable("$WoDestDN$"))).
.809]:WorkOrders ST:
arg-dn(token-local-variable("$WoDestDN$"))
.809]:WorkOrders ST: token-local-variable("$WoDestDN$")
.809]:WorkOrders ST: Expanded variable reference
'$WoDestDN$' to 'TEST\services\DriverSet\WorkOrder\Disabled Accounts
-JohnDoe-123'.
.810]:WorkOrders ST:Processing returned document.
.810]:WorkOrders ST:Processing operation <status> for .
.810]:WorkOrders ST:
DirXML Log Event -------------------
Driver: \DEV-TEST\TEST\services\DriverSet\WorkOrder Driver
Channel: Subscriber
Object: \DEV-TEST\TEST\people\JohnDoe
Status: Error
Message: Code(-9188) Error in
vnd.nds.stream://DEV-TEST/TEST/services/DriverSet/WorkOrder+Driver/Subscriber/Disabled+Accounts#XmlData:32:
Invalid variable name: 'TEST\services\DriverSet\WorkOrder\Disabled
Accounts -JohnDoe-123'.
.883]:WorkOrders ST:End transaction.


--
IDM12
------------------------------------------------------------------------
IDM12's Profile: http://forums.novell.com/member.php?userid=124237
View this thread: http://forums.novell.com/showthread.php?t=452740

Labels (1)
0 Likes
1 Reply
IDM12 Absent Member.
Absent Member.

Re: WorkOrder Driver Destination DN Error


Solved:

Removed $ from:
<token-local-variable name="$WoDestDN$"/>


--
IDM12
------------------------------------------------------------------------
IDM12's Profile: http://forums.novell.com/member.php?userid=124237
View this thread: http://forums.novell.com/showthread.php?t=452740

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.