Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
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.

 

  • Chriddle Profile Picture
    7,652 Super User 2025 Season 1 on at
    Re: Import data from excel to dataverse with unique values

    That looks good to me

  • Community Power Platform Member Profile Picture
    on at
    Re: Import data from excel to dataverse with unique values

    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
    7,652 Super User 2025 Season 1 on at
    Re: Import data from excel to dataverse with unique values

    Check alternate keys:

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/define-alternate-keys-entity

  • Community Power Platform Member Profile Picture
    on at
    Re: Import data from excel to dataverse with unique values

    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
    7,652 Super User 2025 Season 1 on at
    Re: Import data from excel to dataverse with unique values

    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

  • Chriddle Profile Picture
    7,652 Super User 2025 Season 1 on at
    Re: Import data from excel to dataverse with unique values

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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard