web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / apply to each error 'a...
Power Automate
Answered

apply to each error 'action failed'

(1) ShareShare
ReportReport
Posted on by
Hello i have been trying to make a flow that runs every 20 minutes to get transaction data from bank but it giving me this error "An action failed. No dependent actions succeeded." from apply each. 
 
Here is what i am trying to do I'm new to power automate.
  • Trigger: Recurrence (every 20 minutes).
  • HTTP: Make an HTTP request to get JSON data.
  • Parse JSON: Parse the response from the HTTP request.
  • List rows present in a table: Get existing data from Excel.
  • Apply to each: Loop through JSON data.
    • Output: @{outputs('Parse_JSON')?['transactions']}
    • Condition: Check if Amount is greater than or equal to 0.
      • If yes:
        • Apply to each: Loop through Excel table rows.
          • Output: value (from List rows present in a table).
          • Condition: Check if JSON ID matches any Excel ID.
            • If no: Add a row into the table
 
 
 
 
My main goal is to recieve bank data to excel without any duplication and only income data. Also i'd like to know will it work way i wanted to be ?
Hope you will help me.
Categories:
I have the same question (0)
  • NsL Coder Profile Picture
    475 Super User 2025 Season 2 on at
    The problem is likely the dynamic content you used in your apply to each. If you show the JSON Schema in your Parse JSON action, will be able to tell you exactly what's wrong.
     
    However, I think this is a new designer issue, where the new designer is not putting the right dynamic content from a Parse JSON action, I reported this error a while ago to MS.
     
    a proper dynamic content from a Parse JSON action should be like this:
    @{body('Parse_JSON')}
     
    NOT
     
    @{outputs('Parse_JSON')}
     
    Try switching to classic designer and re-add the dynamic content for the apply to each action with the parse json action's dynamic content for transactions.
  • Suggested answer
    GA-23070429-0 Profile Picture
    on at
    i have tried @{body('Parse_JSON')} but it gives me this error  Unable to process template language expressions in action 'Parse_JSON' inputs at line '0' and column '0': 'Required property 'content' expects a value but got null. Path ''.'
  • NsL Coder Profile Picture
    475 Super User 2025 Season 2 on at
    I think you mistaken what I am saying.
     
    The new error you just posted, suggest that your Parse JSON action content field is resolving to NULL. Can you screenshot and show what you have in the Parse JSON action?
  • GA-23070429-0 Profile Picture
    on at
    ahh i tried it on old version of it now its pulling from parse but apply each gives me this error "ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')' is of type 'Object'. The result must be a valid array."
     
  • Suggested answer
    GA-23070429-0 Profile Picture
    on at
    this is what i am getting from parse json 
    en this is the error taht i am getting 
  • Verified answer
    NsL Coder Profile Picture
    475 Super User 2025 Season 2 on at
    Your Parse JSON is at the top level an object, you cannot "apply to each" on an object.
     
    So what you need to put in your apply to each is the transactions dynamic content, which is the array you are trying to loop
    body('Parse_JSON')?['transactions']

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard