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"+"\Disab led 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