Conditional Transform Fails When Attribute Is Null or Empty

Hi everyone,

I’m trying to populate an attribute in the Identity Profile using a conditional transform that returns true if the user’s businessUnit equals "Chief". It works when the attribute businessUnit has a value, but it fails or behaves unexpectedly when the attribute businessUnit is null or empty. I’ve tried using coalesce or setting defaults, but those don’t seem to be supported in conditional transforms.

Is there a recommended way to handle this?

Thanks in advance!

You can also try to use firstvalid when getting businessUnit

Hi @AntonioGvtt,

Try using firstValid transform while calculating value for businessUnit, and then use the output of firstValid transform for comparision.

Thanks, @uditsahntl01 . I tried that structure, but type: "conditional" doesn’t support if/then/else blocks. It throws an error expecting positiveCondition and negativeCondition.

Hi @AntonioGvtt

This might help :

Hi @sidharth_tarlapally, @UjjwalJain, and @baoussounda — thanks for the advice! The transform is now working correctly.

Thanks again,
Antonio