Property setter error trying to set component

I'm having an error I don't understand. I should point out that it's not a fixed error; out of 10 attempts, 3/4 give the error I'm reporting.
I'm also attaching a sample of the blocks, but I tested these on their own and they work fine. What could it be?


Issue probably arising here, with the break block

image

You should also do all your "setting" inside that loop.

Do you only want to action the first match ?

1 Like

image

Maybe you need to get rid of that global variable, and use procedure parameters?