The second argument to foreach is not a list. The second argument is: ""

I have 3 lists to obtain from FB
The values ​​are within:
YEAR
MONTH
TOMO

I have 2 dropdowns with which I get the YEAR and MONTH

and I add the word TOMO in a text to get the values

for example in the month of:

SEPTEMBER if the TOMO label exists

not in MAY


when I select SEPTEMBER I get the values

When I select MAY it sends me an alert

I added a button thinking it was due to time but the alert still appears

BLOCKS

There is no TOMO under May.

But you asked to get TOMO from 2024/May, with a default value of ''.
You could have asked for an empty list instead of '' to avoid this error.

b9b9946a8b04980807a2a2a323cc4094686d276d_2_675x499

1 Like

I have this problem

I try to clean the text after selecting another month

but when I reselect the month that contains TOMO
add the content

and created a CLEAN variable for it

Untitled

So, what's the problem?

What were you expecting to happen?

1 Like

I'm assuming it's a problem with this block:

Try setting the list to an empty list (set global All_Values to create empty list) in the "DES_MES.AfterSelecting" event.

1 Like

image
thanks