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 Apps / Prevent duplicate data...
Power Apps
Answered

Prevent duplicate data to be entered on the system

(0) ShareShare
ReportReport
Posted on by 613

Hi,

Is there a way to prevent duplicate data being entered on dataverse? Pls guide.

 

 

I have the same question (0)
  • Verified answer
    Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Teresa24486 

    You can use duplicate detection rules:

    https://docs.microsoft.com/en-us/power-platform/admin/set-up-duplicate-detection-rules-keep-data-clean

     

  • Bipin D365 Profile Picture
    971 on at

    Hi @Teresa24486 ,

     

    You can create Alternate key in your table to prevent duplicate records being created in dataverse.

     

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

     

    Thanks,

    Bipin

  • Teresa24486 Profile Picture
    613 on at

    Hi @Mira_Ghaly 

    I already have it set up but does not detect duplicate values.

     

    Teresa24486_0-1652265934721.png

     

  • Teresa24486 Profile Picture
    613 on at

    HI Bipin,

    Can you give me more details please?

     

     

  • Bipin D365 Profile Picture
    971 on at

    Hi @Teresa24486 ,

     

    Are you trying to prevent duplicate records for out of the box entity or Custom Entity?

     

    What is criteria for duplicate detection, for example if record with same email address already exist prevent creating/updating new record in crm system?

     

    You can create keys for single column and also combining the Multiple columns.

     

    Login to make.powerapps.com - select Environment- Selected Data - Table - secelct your table and select Keys tab . now add your new keys then publish your change.

     

    For OOB duplicate detection mentioned by Mira, you will have to create duplicate detection rules and publish them.

     

    Thanks,

    Bipin

  • Teresa24486 Profile Picture
    613 on at

    Hi @Mira_Ghaly ,

    I separately configured a new run and it worked. Thanks for your help.

  • urklnme Profile Picture
    166 on at

    In my experience the duplicate detection rules only warn the user of a potential duplicate.  The user can choose to create the duplicate.

     

    It appears that there is NO WAY to PREVENT duplicates OOB.   

     

    Hoping somebody can tell me otherwise.

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @urklnme 

    For duplicate prevention it would be so either the key as by mentioned by @bipinshan or you can write a plugin to do the duplicate prevention mechanism and throw an exception which will prevent the user from proceedings.

     

  • Teresa24486 Profile Picture
    613 on at

    hi @urklnme ,

    Please check this link:

    https://learn.microsoft.com/en-us/power-platform/admin/set-up-duplicate-detection-rules-keep-data-clean to prevent duplicate entry into the dataverse table.

  • WillboBaggins Profile Picture
    34 on at

    @urklnme 

     

    I found this article which was quite helpful for me when I had to deal with this same issue:

    Dataverse: Duplicate Detection Rules vs Keys – Temmy Wahyu Raharjo (wordpress.com)

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard