cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HydrogenUtility
Helper III
Helper III

Child flow with Manual Trigger: text property exists but error states thast it does not exist. Bug?

I access a child flow another flow and pass a basic set of variables as text. Processing the strings in the child flow fails with error "...property 'text_7' doesn't exist..." however it clearly does exist as demonstrated in the screenshots:

Screen Shot 2021-04-06 at 9.24.44 am.png

  The error message.

 

Screen Shot 2021-04-06 at 9.02.35 am.png

Peek code clearly shows the property is available.

 

Where to from here?

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User
Super User

Hello @HydrogenUtility 

The main difference is that if you don't use "?", Power Automate will thrown an error if the field value is null, but on the other hand, using "?" it will return NULL.

More info: Solved: Difference between item()['key'] and item()?['key'... - Power Platform Community (microsoft....

and here: Solved: Use of Question Mark(?) in expressions - Power Platform Community (microsoft.com)

 

I always use "?" to make sure Power Automate won't break if there's a NULL value in any field 😉

Hope it helps!

Ferran

 

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

4 REPLIES 4
fchopo
Super User
Super User

Hello @HydrogenUtility 

Could you try using the following expression (question mark before ['text_7']) ?:

split(triggerBody()?['text_7'],'<br>')

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!
HydrogenUtility
Helper III
Helper III

Thanks very much @fchopo. I actually re-built the child flow from scratch to make it work so cannot (at this time) test your answer. But it seems so obvious to me now you say it.

But...

How do you explain this, being the source of the variable syntax when I write an expression:

Screen Shot 2021-04-06 at 4.47.13 pm.png

Hover on the first instance of 'from' which I placed in the flow using Add dynamic content this morning is reads: triggerBody()['text_5']    ** without the '?'**

Screen Shot 2021-04-06 at 4.47.20 pm.png

Hover on the second instance of 'from' which I placed in the flow using Add dynamic content a moment ago is reads: triggerBody()?['text_5']    ** with the '?'**

 

I can only replicate dynamic content with '?' but it's plain to see that it's turned up in two different ways previously.

Mystery? Bug?

 

Thanks for your input!

fchopo
Super User
Super User

Hello @HydrogenUtility 

The main difference is that if you don't use "?", Power Automate will thrown an error if the field value is null, but on the other hand, using "?" it will return NULL.

More info: Solved: Difference between item()['key'] and item()?['key'... - Power Platform Community (microsoft....

and here: Solved: Use of Question Mark(?) in expressions - Power Platform Community (microsoft.com)

 

I always use "?" to make sure Power Automate won't break if there's a NULL value in any field 😉

Hope it helps!

Ferran

 

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

Great. That's a good explanation. But I'm still unsure about why the '?' is occasionally present (in prompted entries) and occasionally absent.

Thanks again.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,571)