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 / Excel "Add row into ta...
Power Automate
Suggested Answer

Excel "Add row into table" is overwriting an entire column with the value from the last row.

(0) ShareShare
ReportReport
Posted on by 12
I making an Excel file from SharePoint data.
 
I'm using a Select to make the array I need and then feeding that into a ForEach loop.  I can see that my input data is formatted correctly.
 
The first column is a link that opens PowerApps to a specific page.  They are made using a concat() function in the Select step.  The links work.  They appear to be formatted correctly, but when I put this data into Excel using 'Add a row into table', EVERY row gets overwritten with the link from the last row, while all the other data is correct.
 
Basically, if I have 4 items, the array I have for feeding into Excel would look like this:
 
 {
            "Link": "=HYPERLINK(\"http…",\"Link1\")",
            "Material": "Material 1",
            "Lot": "Lot 1",
            "Quantity": 1,
            "Responsible Person": null,
            "Location": "Location 1",
            "Last Used": "2023-11-22"
        },
 {
            "Link": "=HYPERLINK(\"http…",\"Link2\")",
            "Material": "Material 2",
            "Lot": "Lot 2",
            "Quantity": 2,
            "Responsible Person": null,
            "Location": "Location 2",
            "Last Used": "2023-11-22"
        }
 {
            "Link": "=HYPERLINK(\"http…",\"Link3\")",
            "Material": "Material 3",
            "Lot": "Lot 3",
            "Quantity": 3,
            "Responsible Person": “Person A”,
            "Location": "Location 3",
            "Last Used": "2023-11-22"
        },
 {
            "Link": "=HYPERLINK(\"http…",\"Link4\")",
            "Material": "Material 4",
            "Lot": "Lot 4",
            "Quantity": 4,
            "Responsible Person": “Person B”,
            "Location": "Location 4",
            "Last Used": "2023-11-22"
        }
 
The select looks like this:
 
 
The Excel file winds up looking like this:
 
Link Material Lot Quantity Responsible Person Location Last Used
Link 4 Material 1 Lot 1 1   Location 1 11/22/2023
Link 4 Material 2 Lot 2 2   Location 2 11/22/2023
Link 4 Material 3 Lot 3 3 Person A Location 3 11/22/2023
Link 4 Material 4 Lot 4 4 Person B Location 4 11/22/2023
 
 
Again, the input data has the correct value for each row, but the entire first column is being replaced with the data from the last row.
 
EDIT
 
I removed the select and instead have each row composed into an array in the same step it is added to the Excel file, and I am still getting the same result.
 
 
What is going on here?
Categories:
I have the same question (0)
  • WillPage Profile Picture
    2,307 Super User 2025 Season 2 on at
    That's very odd. To eliminate whether the issue is with Excel or Power Automate, you can do a Create HTML table out of the Select or a CSV and see what it looks like in the run history. I'm guessing the Excel/Onedrive API is getting itself into a spin though. You could try setting the concurrency of your loop to 1 in the settings then adding a delay action in there. Experiment with the duration of the delay until it works.
  • Suggested answer
    CU08072022-0 Profile Picture
    12 on at
    Step-by-Step Guide to Fix Power Automate Excel “Add Row into Table” Overwriting Issue

    ---
    Background:
    When using Power Automate to add multiple rows into an Excel table — especially with columns containing formulas like hyperlinks — sometimes the first column (e.g., Link) gets overwritten in all rows by the value from the last row. This usually happens because of concurrency and API timing issues.

    ---
    Objective:
    Ensure each row inserts correctly with unique data without overwriting columns.

    ---
    Steps:
    1. Open your Power Automate flow
    Go to Power Automate and open your flow.

    2. Find the “Apply to each” loop
    Locate the loop where you add rows to Excel.

    3. Disable concurrency control on the loop
    Click the three dots (•••) on the top right of the “Apply to each” action.
    Choose Settings.
    Toggle Concurrency Control to Off (set Degree of Parallelism = 1).
    Save changes.
    This ensures rows are processed one after another, preventing overwrites.
     
    4. Add a delay inside the loop
    Inside the loop, after the Add a row into a table action, add a Delay action.
    Set the delay for 2 seconds (00:00:02).
    This pause allows Excel API to process each row fully.
     
    5. Verify input data before the loop
    Add a Compose or Create HTML Table action before the loop, referencing your array.
    Run the flow and inspect output to confirm each row’s data is correct.
     
    6. Optionally simplify row creation
    Build each row dynamically inside the loop rather than using a separate Select action.
     
    7. Save and test your flow
    Run with test data and confirm all rows appear correctly in Excel, with unique links and data.
     
    8. Adjust delay if needed
    If issue persists, increase delay time incrementally (3–4 seconds).
     
     
    ---
    Notes:
    This behavior is common due to Excel Online API limitations.
    Disabling concurrency and adding delay are the most effective workarounds.
    Always verify the data being sent to Excel is correct and complete.
     
  • PH-27112033-0 Profile Picture
    12 on at
     
    This email I'm generating already has the data in an HTML table and it's been working fine.  Just trying to add the Excel file now.
     
    Changing the concurrency limit to 1 and adding a 10 second delay after each "Add a row" operation did not fix it.  Currently, there are 150+ items in the SharePoint results, so with a 10 second delay this flow takes an hour to run (and test) which seems a little unreasonable.
  • Suggested answer
    Tomac Profile Picture
    3,953 Moderator on at
    So let's start with a couple things:
     
    1.  You don't need to add Delay actions on your Add A Row actions, Add A Row handles file locking and unlocking on its own.
    2.  Concurrency Control is essential because of said file locking
    As for all the links appearing the same, in your screenshot that's the one item that you're using an expression for, beginning with the concat() function. Can you post that full expression here so we can see what Power Automate is working with on each iteration of the loop? My guess is the link was hard coded for testing there an it wasn't changed back to dynamic content.
  • PH-27112033-0 Profile Picture
    12 on at
    Hi @Tomac
     
    If I review the flow run, I can see that the link is generated correctly and unique for each iteration of Add a Row.
     
    The concat() looks like this:
     
    concat('=HYPERLINK("https://apps.powerapps.com/play/e/[APP UID]&ID=', item()?['ID'], '","', item()?['Serial'],'")')
    As I said, the value that fills the whole column is the value from the last row, which has changed since I first encountered this as the results of my SharePoint query are changing.
     
    This is how I now have Concurrency set.  Is it correct?

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard