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 / Patch creation of new ...
Power Apps
Answered

Patch creation of new record after data loaded

(0) ShareShare
ReportReport
Posted on by 175

Hey guys,

 

I'm having a problem with DataVerse, especially with the idConclusaoMonitoramento column (automatic numbering).

galdezanni_1-1630435858170.png

 

First of all, I imported data into my table, and now I want to use the app to insert more data, but it returns a conflict error with the idConclusaoMonitoramento column.

code: 

Patch(
 tbConclusaoMonitoramento;
 Defaults(tbConclusaoMonitoramento);
 {nmConclusaoMonitoramento: Trim(TextInput2_5.Text)
 }
 )

 

error text: 

Conflicts with server changes. 
Reload. 
Server Response: tbConclusaoMonitoramento failed: A record containing the idConclusaoMonitoramento attribute values ​​already exists. The AKidConclusaoMonitoramento entity key requires that this set of attributes contain unique values. Select unique values ​​and try again.

galdezanni_0-1630435764310.png

 

Apparently it does not recognize the numbers already registered and generates conflict, as this column is automatic numbering, I imagine that I would not need to inform the id number in Patch.

 

I tested it with a table without data, and it worked correctly, I imagine the problem is with the tables with data import.

the registry update works, the problem is with the registry creation.


Thanks,

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @galdezanni ,

     

    It seems like you created an alternate key,

    The value of the column used in the alternate key must be unique.

    If you don’t need it, you could delete it.

    vxiaochenmsft_0-1630464672142.png

     

     

    Best Regards,

    Wearsky

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard