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

Import data from excel to dataverse with unique values

(0) ShareShare
ReportReport
Posted on by

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,436 Super User 2025 Season 2 on at

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

  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 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
    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,436 Super User 2025 Season 2 on at
  • Community Power Platform Member Profile Picture
    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,436 Super User 2025 Season 2 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

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