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 / Import data from excel...
Power Automate
Unanswered

Import data from excel to dataverse with unique values

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I made a flow which gets triggered in Power Apps for importing data from an Excel file into the Dataverse table. It works perfectly, but now I need to make sure there are no duplicates added, that no row from the Excel file already exists in the Dataverse. 
My table has a unique value called Unique_ID which I'm trying to compare with the value received from the Excel. 

 

This is how my flow currently looks, when it works perfectly. 

DrBianca_0-1680764584053.png

 

After reading stuff on this forum, I tried adding a "Get row by ID" action to compare inside the dataverse and put a condition after it, but the problem is that I was able to put the action only after "add a new row" because otherwise I don't get that "unique_id" from anywhere else, it does not show as an option. These actions made it so that my dataverse will update but it crashed always on the "get row by id" action. 

Thanks for you help.

 

Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,591 Super User 2026 Season 1 on at

    Enforce unique values for this column at the dataverse table level.

  • Chriddle Profile Picture
    8,591 Super User 2026 Season 1 on at

    Before inserting a row you can do a "List rows" with a "Filter rows" for the new id and only if that returns no items do the insert.

    However, this can fail if there are multiple inserts in a timely manner!

    So enforce unique values for this column at the dataverse table level

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Already did that, for the Sharepoint and in Dataverse as well, I made it primary column but it will still introduce duplicate data when imported

  • Chriddle Profile Picture
    8,591 Super User 2026 Season 1 on at
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you, it worked, the flow ran successfully. 
    Just a quick question, can this be a problem later? It runs successfully to the end of it, I used "configure run after" for the next action so it can finish either way and so far it added the new values only, as I wanted.  

     

    DrBianca_0-1680849924684.png

     

  • Chriddle Profile Picture
    8,591 Super User 2026 Season 1 on at

    That looks good to me

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard