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
Unanswered

apply to each error 'action failed'

(2) 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 o know will it work way i wanted to be?
Hope you will help me. thank you!
Categories:
I have the same question (0)
  • narayan225 Profile Picture
    2,547 Super User 2025 Season 2 on at
    You need to go to the exact iteration that caused the issue and find the error from there.
    You can achieve what you are trying to do but need to check where it is failing.
     
    Go through each step of apply to each and one of the actions should have the error you are looking form.
     
    Hope this helps.
    Cheers!
  • ManSed Profile Picture
    2 on at
    As far as I see, you should verify if all conditions are working correctly. To do this, you can disable the second "foreach" loop and add an array or string variable after the first condition. Then, observe the results you obtain. If the results are good, move on to the next set of conditions and repeat the process.

    Once you are confident that the results are accurate, it's important to verify the final step, which involves inserting data into the Excel table.
     
  • NC Profile Picture
    2 on at
    The problem is in the condition_1 step of you flow. It says invalidTemplate. Can you expand on whats happening in condition_1?
    My best guess is you are not accessing the excel column value correctly in the for each.
    I always like to use compose to see the data in cases like this. Use a compose to see the data before condition_1 to see if its returning the data in the way you wanted.

    I would also like to add that the second for each can be replaced with the excel action 'Get a row' and with the ID from parsed json as key value, and remove the entire 'list rows from excel' action.
    Another way is to use filter array on the excel table and check its length instead of for each.

  • Suggested answer
    GA-23070429-0 Profile Picture
    on at
    hello i have used the get row action but i think i am using it wrong here are all of the error that i am getting 
     
     
     
  • narayan225 Profile Picture
    2,547 Super User 2025 Season 2 on at
    The error message says that the record was not found which is why it is returning 404 error.
     
    I suggest you investigate the Get row action and find fi the row actually exists with the matching Record value.
     
    Hope this helps.
    Cheers!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard