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

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

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: %+C%14CNOVLSCRGEN-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.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2016-10-03 20:57
Updated by:
 
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.