Dear SailPoint IDN Documentation Team,
For the transform firstValid
( First Valid | SailPoint Developer Community ), attribute ignoreErrors
we have the following description (no default value is specified):
ignoreErrors - This
true
orfalse
value indicates whether to proceed to the next option if an error (like an NPE) occurs.
and below at the examples:
Without
ignoreErrors
set totrue
, this transform throws a null pointer exception (NPE) for any user without a manager. WithignoreErrors
set to true, the first value in thefirstValid
throws an error for users without managers, but the error is ignored, and the transform selects the empty string to set the “Manager DN” identity attribute to.
I think that the part Without ignoreErrors
set to true
, this transform throws a null pointer exception (NPE) is misleading, as it seems that the default value of ignoreErrors
is already true
.
In my opinion the examples are misleading as well as for all of them the ignoreErrors
is true
(implicitly or explicitly).
I think a similar text like the following would be much clearer, and would not imply that if you are not setting the ignoreErrors to true you would see the errors.
With
ignoreErrors
set tofalse
, this transform throws a null pointer exception (NPE)…
In addition, please explicitly define the default value of the optional parameters for all transforms.
And as a second question, is the parameter for ignoreErrors a boolean value or a string? (in the examples it used the string ("true"
), instead of true
).
Best regards,
Andrei
I see no difference between the following examples, so it’s not clear why this example is provided on the webpage:
- original example from First Valid | SailPoint Developer Community
{
"attributes": {
"ignoreErrors": "true",
"values": [
{
"attributes": {
"value": "$identity.manager.attributes.networkDn"
},
"type": "static"
},
""
]
},
"name": "Example_Transform_ManagerDN",
"type": "firstValid"
}
- ignoreErrors removed, second value (
""
) removed
{
"attributes": {
"values": [
{
"attributes": {
"value": "$identity.manager.attributes.networkDn"
},
"type": "static"
}
]
},
"name": "Example_Transform_ManagerDN",
"type": "firstValid"
}