Error Message: Code (-9145) Unable to determine target object for action 'do-add-association

0 Likes
over 5 years ago
Scripting Driver:

Identity Manager 4.5.4

NIdM_Integration_Module_4.5_Scripting with PATCH 2.

PROBLEM:

When setting Auto Associate to YES, when user tries to associate, getting error:

Status:   Error Message:  Code(-9145) Unable to determine target object for action 'do-add-association(arg-association(token-local-variable("assocStringValue")))'.

The problem is that the driver auto associate code is looking for a GCV called “auto-associate-sub-value”. That GCV is incorrectly named, and will NOT find it.

Scripting ST:No match found.

Scripting ST:Applying object creation policies.

Scripting ST:Applying policy: % CCNOVLSCRGEN-sub-cp%-C.

Scripting ST:  Applying to add #1.

Scripting ST:    Evaluating selection criteria for rule 'Generate Association String Value from Source Name'.

Scripting ST:      (if-global-variable 'auto-associate' equal "true") = TRUE.

Scripting ST:      (if-association not-associated) = TRUE.

Scripting ST:      (if-global-variable 'auto-associate-sub-value' equal "SourceName") = FALSE.

Scripting ST:    Rule rejected.

Scripting ST:    Evaluating selection criteria for rule 'Generate Association String Value from GUID'.

Scripting ST:      (if-global-variable 'auto-associate' equal "true") = TRUE.

Scripting ST:      (if-association not-associated) = TRUE.

Scripting ST:      (if-global-variable 'auto-associate-sub-value' equal "GUID") = FALSE.

Scripting ST:    Rule rejected.

Scripting ST:    Evaluating selection criteria for rule 'Automatically Assign Associations'.

Scripting ST:      (if-global-variable 'auto-associate' equal "true") = TRUE.

Scripting ST:      (if-association not-associated) = TRUE.

Scripting ST:    Rule selected.

Scripting ST:    Applying rule 'Automatically Assign Associations'.

Scripting ST:      Action: do-add-association(arg-association(token-local-variable("assocStringValue"))).

Scripting ST:        arg-association(token-local-variable("assocStringValue"))

Scripting ST:          token-local-variable("assocStringValue")

Scripting ST:            Token Value: "".

Scripting ST:          Arg Value: "".

SOLUTION:

Go into the GCV’s for the Scripting Driver: Change the name of the GCV to match what the driver is looking for: auto-associate-sub-value.

Select the Auto Associate Value, and EDIT.

AutoAssociate

AutoAssociate2

Change the ‘NAME’ of the GCV to ‘auto-associate-sub-value’

AutoAssociate3

Finish, then deploy changes and restart driver. The driver will now associate the user properly.

Labels:

How To-Best Practice
Comment List
Anonymous
Related Discussions
Recommended