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 / Updating a row in Exce...
Power Automate
Unanswered

Updating a row in Excel using Forms and Power Automate duplication problem

(0) ShareShare
ReportReport
Posted on by 46

Hi,

 

I am currently using Microsoft forms to add responses to an excel spreadsheet, once the same individual posts another response power automate updates the excel spreadsheet, this is working perfectly. However when it updates the spreadsheet it also duplicates the row! How do I stop this as I do not want 2 rows with the same information.

 

Thank you for your help, I am an absolute novice and have only used these systems for 1 day. Please keep it simple if you can.

 

Nelly.

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @Nelly834 ,

    Some printscreens with your flow will be helpfull ...

  • Nelly834 Profile Picture
    46 on at

    Screenshot 2021-01-23 at 11.40.24.pngScreenshot 2021-01-23 at 11.39.06.png

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @Nelly834 ,

    From myunderstanding you have two flows triggered by the same event "When a new response is submitted". What we have to do is to join this two flows into single one.

     

    First of all we need to check the "number" from the completed form is already in your excel file and based on this check we act differently.

    The simpliest way to find if the "number" is already in your excel file is to put a Excel - "Get row" action . Unfortunately, this action does not return an empty array if there is no rows with your condition, it fails.

    So you have to manage the following actions based on this behavior. Add two parallel branch actions and set the "configure run after" one for success (you can update the record because exists) and one for fail (you need to create a new one). 

     

    gabibalaban_1-1611404892055.png

     

    Note that this solution will show as failed run when a new item is created (you can add a terminate succeeded to look nice in logs).

     

    Hope it helps !

  • Nelly834 Profile Picture
    46 on at

    Thank you for the swift response. The problem is the number will not exist in the spreadsheet until it is first added by the person using the form, once it is added it will be updated. so until the user completes the form for the first time the spreadsheet will be blank.

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    That’s what i said ... if the number does not exists then the get rows action will fail and the add a new row into a table action will create one. 

  • Nelly834 Profile Picture
    46 on at

    Solution.png

     

    How do I get to that option of splitting them?

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    The ellipsis button ... on each action give you the menu between update a row and add a row 

  • Nelly834 Profile Picture
    46 on at

    I understand how to get the extra menu, what I don't understand is how I split the box so you have them side by side like in the Image above.

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @Nelly834 

    First, create one of the actions,  second click the "plus" sign, third select Add a parallel branch.

     

    gabibalaban_0-1611491454373.png

     

     

  • Nelly834 Profile Picture
    46 on at

    Screenshot 2021-01-24 at 13.37.47.pngScreenshot 2021-01-24 at 13.38.26.png

     

    It still fails, what have I down wrong?

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard