I have a transform (from here) that reads a specific attribute from manager’s identity. However, when the identity does not have a manager this transform throws error resulting in identity to have the error and not calculate some other attributes.
I have tried to wrap the transform with firstValid, but this did not help.
To handle errors in transforms when an identity doesn’t have a manager, specifically for the getReferenceIdentityAttribute transform, you can use the “ignoreErrors” attribute set to true. This allows the transform to continue processing even if an error occurs when trying to access the manager’s attributes.
In this, the transform attempts to get the manager’s email attribute. If the identity doesn’t have a manager or if there’s any other error, it will return “None” as the fallback value. You can replace “None” with any other appropriate fallback value or transform based on your specific requirements.
What attribute are you trying to set with the transform? The first valid should have helped, what options did you set if the manager wasn’t valid?
For example if you’re trying to set a manager email, the first valid options could be something like $identity.manager.email then “no-email@domain.com”