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 / Preventing duplicate e...
Power Automate
Unanswered

Preventing duplicate entries in a SharePoint list

(1) ShareShare
ReportReport
Posted on by 17

I have a flow that takes an excel spreadsheet and copies the existing rows to a SharePoint list.  However, the excel spreadsheet will need to be updated a few days later and more rows will be added to it.  Uploading the same spreadsheet (with new entries added) to the flow results in the duplication of previous entries that were uploaded from the first run.

 

Is there a way to re-upload the same file without duplicating records?

 

I do not think that enforcing unique values will work since I am using a flow to get the rows from an excel sheet and put them into a SharePoint list.  It is my understanding that enforcing unique values is done on the SharePoint side and would cause my flow to break if I tried adding a record that was previously added to the list and labeled as a unique value.

 

Example:

 

Version 1.0

This is the original excel file (Ver. 1.0)

FruitQuantity
Apples3
Pears4

 

Version 1.1

FruitQuantity
Apples3
Pears4
Oranges2

 

This would be the updated excel file (Ver. 1.1). I would like to be able to re-upload the newly updated excel file into the flow, but omit the entries of "Apples" and "Pears" and only add "Oranges".  Creating a new excel spreadsheet for the new entries/rows is not ideal, and we would like to be able to use the original spreadsheet (with new entries added to the table, Ver. 1.1).  All entries will be located within the same excel table (only one table in the excel file).

 

Is this possible? I have tried using a condition but that doesn't seem to be working at the moment.


I can also upload screenshots of my current flow if that will bring some clarity to the issue!

 

The flow currently works as expected, other than the duplication of entries.

 

Thank you for any and all help!

Categories:
I have the same question (0)
  • Verified answer
    JisungHan Profile Picture
    on at

    Hi @MusicMonkey ,

     

    I am afraid that there is no way to filter duplicated records without unique value in such scenario. System works based on what the logic is and it can't filter itself. If the excel replaces and starts running within a certain logic, the unique field or number should be only way to skip duplication. 

     

    If there are multiple fields (over 3 different fields), then, you may add the filter by combining the fields (at least three) to make sure the record is unique but it still not available to make sure the data integrity without unique value.

     

    Best regards,
    Jisung Han

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