Expression map_to_text_list() fails

Hi there!
I am trying to do IF clause where I use an expression to check if the name is already in the target object array.
This worked before I changed the object variable to include more fields. In my testing case my object only contained one text field.

map_to_text_list(@Variable.ParameterList , ‘Name’)
This is how the variables look like now, the “List” and the “Element”.

I don’t know how to troubleshoot this error. Can anyone help me and point me in the right direction?

Hi @Dominik_Tamawira and welcome to Tulip Community!!

Couple questions to help debug further here -

Are you seeing an error in expression editor when doing the map_to_text_list? or is it just not returning any result?

If you try testing with more than one text field does that make a difference?

@Beth

It’s not possible to store a trigger if there is an error in the expression editor or an action…

Chris

Yes Chris, I understand. Thanks for clarifying! What I was asking was if there was an error showing in the expression editor and if so what it is saying, such as the example below:

No, the expression editor doesn’t show an error and I can save the expression in the trigger. The “Store” function just doesn’t store anything.

I have no idea what I have done differently, but I put the trigger in to take the screenshot and now it works as intended. Thanks for welcoming me and helping with my first probem :slight_smile:

2 Likes

I’m glad this is resolved! Since there was no error in the expression itself, but the data wasn’t showing up, maybe there was something going on in your connector where it wasn’t populating the array? Just a thought :slight_smile:

Feel free to come back to this thread if it gives you any trouble in the future!