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!

1 Like

You can also try to use firstvalid when getting businessUnit

1 Like

Hi @AntonioGvtt,

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

1 Like

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 :

2 Likes

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

Thanks again,
Antonio

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