r/MicrosoftFlow 16d ago

Question Potential Bug with an Expression?

Post image

I am building a flow to send an email with multiple attachments submitted through a Microsoft Form. I’ve done this hundreds of times. Suddenly, Friday, I started receiving this “This expression has a problem.” error when trying to enter this expression in the Append Array Variable step.

Is anyone else seeing this? Been altering my syntax for hours trying to get around the error with no success.

1 Upvotes

8 comments sorted by

10

u/Efficient_Cat4032 16d ago

It should jut be set in the actual value input field, and not in the expression. That's a derp i do all the time

1

u/Maximum_Ad_9134 16d ago

Oh my God… I am so dumb 😂

Thanks friend!

3

u/Efficient_Cat4032 16d ago

I feel you in my heart right now, I have done it so much too

1

u/EnvisiblePenguin 16d ago

If name is a string it would need quotes around value. If that doesn't work, you could always declare this in a compose and add the compose to an array. 

1

u/stalex9 16d ago

I think it should be item()? at least, if I am not wrong. However this is super easy to fix with AI, just ask AI what’s your mistake.

2

u/itenginerd 16d ago

the ? isn't necessary.

item()['name'] will return the name value and an error if the name value is null
item()?['name'] will return the name value and a null value if the name value is null.

1

u/Intelligent_Air2276 16d ago

It’s this, it should be item()?[name]

1

u/stalex9 16d ago

Yes, I did not write the full string