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.'.
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.
Was this reply helpful?YesNo
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.