Cloud Rule - IdentityAttribute type failed

Hi All,

We’ve deployed our cloud rule in local I’m able to check the use cases it was working as expected but in tenant it failed, It shows “There was an exception while calculating the value for this attribute. Error running rule transform:sailpoint.tools.GeneralException: The application script threw an exception: java.lang.IllegalArgumentException: Supported operations include “StartsWith” and “Equals” only. BSF info: CloudLifeCycleState”

String hasUidAttribute = identity.getAttribute("uid");
        String hasUid = hasUidAttribute != null ? hasUidAttribute.trim() : null;

        int count = idn.countIdentitiesBySearchableIdentityAttribute("uid", "equals", "hasUid");

Is this because I used “equals” where system allows only “Equals” ?

@vasanthrajsp29 Indeed, its seems you need to use Equals only. Please find the method expectations:

  • @throws IllegalStateException when attribute provided is not searchable,
    • when the operation is not StartsWith or Equals,
    • or if there are issues during the count operation.

Regards,
Shekhar Das

2 Likes

Hi @shekhardas1825,

Even I thought same, I’ve changed the code, accordingly, Will ask them to re-deploy in tenant. Will get back to you once deployed and tested.
Thanks!
Vasanth

2 Likes

Hi @Shekhar,

Cloud rule was able work as expected, Issue was with equals operation.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.