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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Excel Update Rows acti...
Power Automate
Answered

Excel Update Rows action - updating each row based on the value from a different sheet

(2) ShareShare
ReportReport
Posted on by 39
Hello!
 
I need to update some of the values in 'Sheet 1' with the corresponding information from 'Master Sheet'. Each are excel files stored in a Sharepoint document library.
Each row on both 'Sheet 1' and 'Master Sheet' have a unique 'ID' column. 'Master Sheet' is a Master list of all the data. 'Sheet 1' has only a few of the rows that 'Master Sheet' has, as it is tailored to a specific user.
 
So basically, for each unique 'ID' found on 'Sheet 1's row, update 'Sheet 1' with the information from 'Master Sheet's row that shares this unique 'ID'.
 
How I have been trying to do this:
Manual trigger ->
'List Rows Present in a Table' action to get content from 'Master Sheet', using a filter query to reduce the amount of data returned. ->
'Filter Array' action to further reduce the amount of data. ->
'Parse JSON' action to allow the Filter Array data to be accessed via Dynamic Content ->
'Update a Row' action inside of an 'Apply to Each'
 
The error I'm getting:
// (highlighted in gray is some values I've redacted)
 
{
  "status"404,
  "message""No row was found with Id '510069872280'.\r\nclientRequestId: redacted",
  "error": {
    "message""No row was found with Id '510069872280'."
  },
  "source""redacted"
}
 
My assumption on what it's doing:
It looks to me like it is attempting to use each 'ID' from 'Master Sheet', find it on 'Sheet 1', then update 'Sheet 1'.
The id in the error above "510069872280"  is one found on 'Master Sheet', but not 'Sheet 1'.
 
What I need it to do:
I need it to look for the unique 'ID' on 'Sheet 1', then find the row on 'Master Sheet' with the same 'ID', and update the cells in the 'Sheet 1' row with the information from the corresponding row in 'Master Sheet.'
 
Flow pictures:
 
Entire flow:
 
Actions Breakdown:
 
List Rows Action:
 
Filter Array Action:
 
Parse JSON Action:
 
Update a Row Action:
 
Please let me know if I can provide any more information.
Your help will be very much appreciated.
 
Best,
Jordan
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,978 Moderator on at
    HI
     
    Then you need to flip your logic. You are looping through the master sheet, don't, loop through your work file and then you can easily do your lookup on the master using the id from the current loop of that file
     
    You were like perfectly there and said it perfectly but you coded it the opposite way.
     
    So
    1. List rows in your secondary sheet table
    2. Apply to each
    3. List rows for master filtered by your id from the apply to each for #2 input
    --update your Master file
  • CU18091915-0 Profile Picture
    39 on at
    Success!!
     
    A sincere thanks, FLMike. I was definitely struggling with the logic of the Update Rows action.
     
    I was also able to remove the Filter Array and Parse JSON, as the additional filters they were getting were no longer needed when using the List Rows action this way.
     
    Posting the completed flow below for posterity, especially because the pictures in the initial post did not upload:
     
     
     
    Notably, the final 'Update a Row' action is nested within the first 'Apply to Each' action, in addition to its own 'Apply to Each.'
    This is necessary for it to get the content from the second 'List Rows' action.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard