Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Help with Array elements can only be selected using an integer index.

(0) ShareShare
ReportReport
Posted on by
I made an amendment to a flow and now I am getting the error below on the Start and Wait for an approval step.  I haven't made any changes to the field ProspectNumber which it was previously referencing OK.
 
Unable to process template language expressions in action 'Start_and_wait_for_an_approval' inputs at line '0' and column '0': 'The template language expression 'outputs('Update_item')?['body/ProspectNumber']' cannot be evaluated because property 'body/ProspectNumber' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'.
  • Suggested answer
    David_MA Profile Picture
    David_MA 8,219 on at
    Help with Array elements can only be selected using an integer index.
    It would be helpful to show your flow, otherwise we can only go by the error message. The error message is saying you need to use an expression such as outputs('Update_item')?['body'][2]?['ProspectNumber'] in the Start and Wait for an approval action (the expression shown would return the third item from the array and [2] is the integer index referenced in the error). You must be referencing this value in the description of the approval. If so, remove it from the description and run your flow to see if it resolves the error. If it does, then you know the issue and you can use an expression like I mentioned to return the correct value from the array.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

End of Year Newsletter…

End of Year Community Newsletter…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #11 New Opportunities…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,609

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,420

Leaderboard