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 / Flow is duplicating ou...
Power Automate
Answered

Flow is duplicating output from excel into Dataverse for Teams

(0) ShareShare
ReportReport
Posted on by 67

I'm trying to update a dataverse for teams table with new rows from an excel file stored in the same environment.

I was able to get the new rows created, but unfortunately it's creating multiple rows for each.

 

I'm listing rows in the excel, then listing rows from the dataverse table where the ID column from Excel matches the Name column in Dataverse. If they do not match then the excel row needs to be added to the dataverse table. But what I'm getting as a result is that if there are 5 new rows in the excel file, the flow creates 25 rows into dataverse, 5 copies for each row in excel.

 

my flow is as below:

 

MH5_0-1664452625116.pngMH5_1-1664452680027.png

The condition is: length(outputs('List_rows')?['body/value'])

I suspect the issue is either with the condition, or with "Apply to each2"

MH5_3-1664452963033.png

Any insight on how to ensure only new rows are added to the dataverse table without duplication?

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi @MH5 ,

     

    It seems that the second Apply to each Action is unnecessary.

    vyujincuimsft_0-1664517559924.png

    I have made a similar test for your reference.

    vyujincuimsft_1-1664517609177.pngvyujincuimsft_2-1664517621570.png

    vyujincuimsft_3-1664517632877.png

    Result Screenshot:

    vyujincuimsft_4-1664517649126.png

     

     

     

    Best Regards,

    Charlie Choi

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard