cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pgllp
New Member

The template language expression 'item()['VersionLabel']' cannot be evaluated because property 'VersionLabel' cannot be selected

Hello PA community, I am new to Power Automate.  I am a reformed programmer, but I'm finding this maddening.  Mostly because I apparently don't have the patience required.  I apologize for my ignorance, but I could use your help.   I keep getting the error above.   In general, my question is how does one isolate a "row" from an array using the native tools?  The best I can tell is that function item() is what needs to be used.  However, I continue to receive the above error, so (obviously) I don't know what I'm doing.  In the sample below, I am trying to test the data in the string field "VersionLabel".  An ancillary question I supposed is how can I determine what fields (columns) are in the array? Please let me know what other information you need.

 

Capture1.JPG

 

Capture3.JPG

 

3 REPLIES 3
Jcook
Super User III
Super User III

Hi @pgllp 

 

The expression item() is usually used in apply to each loops.

 

Try adding an apply to each loop and passing in the output of the SharePoint action.

 

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Hi!

AS @Jcook  already explained, item() is usually used inside an 'Apply to each'.

It can be used also inside a Filter Array, an also inside a Select... the three of them are operations that take arrays as inputs and iterate all through the array elements.

For better understanding of arrays and iterations, I usually recommend the following link...

https://sharepains.com/2018/07/10/microsoft-flow-shed-some-light-on-arrays/

 

Hope this helps

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



@pgllp 

Is the question solved? If you need further assistance please let us know

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (39,110)