Skip to main content

Notifications

Community site session details

Community site session details

Session Id : bWumQixVDkIGdp3v/zQ86T
Power Apps - Microsoft Dataverse
Unanswered

Preventing duplicate data in Dataverse columns

Like (0) ShareShare
ReportReport
Posted on 18 Nov 2023 21:28:37 by 251

I am developing in Access using Dataverse tables as the data sources. I just discovered an oversight on Microsofts's end - there is not a way to prevent duplicate data entries in a column. For example, I have a Case Number generated from another software program. I want to type the Case Number from the other program field into a Dataverse column. The Case Number is attached to a customer. If I type in two John Smith's, for example, I want to make sure that they are unique and not duplicates. I enabled Duplicate Detection but that feature doesn't work. With this deficiency in mind, I am seriously doubting if Dataverse is a viable solution to support data integrity for Access DB's and Model Driven Apps. Yes, I will eventually migrate to Power Apps, but in the meantime are there any work arounds to address this issue? 

Categories:
  • Tal22 Profile Picture
    251 on 20 Nov 2023 at 18:12:43
    Re: Preventing duplicate data in Dataverse columns

    Thanks. I should have mentioned that I tried setting up an alternative key but it did not read the column I needed. Issues such as this does not instill a lot of confidence in me that Dataverse is a serious database solution. I will now have to run Access queries to manually find duplicate data, which adds more labor and complexity, and explain to my non-tech supervisor why Dataverse fails in this regard. 

  • ChrisPiasecki Profile Picture
    6,389 Most Valuable Professional on 18 Nov 2023 at 21:44:33
    Re: Preventing duplicate data in Dataverse columns

    Hi @Tal22,

     

    Duplicate detection is meant to detect a potential duplicate. In the model driven apps UI, it prompts the user and let's them decide if they want to proceed anyways or cancel. Since you're creating the record from Access, there is no duplicate detection UI.

     

    If you want to ensure uniqueness is enforced and prevent duplicates, you can setup Alternate Keys. This gets enforced at the data layer. Make sure you clear out existing duplicate records before creating the key or it will fail to create the database indexes  behind the scenes and activate the key.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 15

#2
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

Overall leaderboard

Featured topics

Loading started