web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Tax registration entity Import

(0) ShareShare
ReportReport
Posted on by 147

I am running into a duplicate key error while trying to import data using a custom data entity, and I'm hoping someone can point me in the right direction.

The Scenario:
I created a duplicate of the standard TaxRegistrationBaseEntity. The customer registration records include ValidFrom and ValidTo date fields, along with some RecIds being saved for TaxRegistrationTypeApplicabilityRule and DirPartyLocation.

The Issue:
When I export data and immediately try to re-import using this duplicated entity, I get a duplicate key error. Upon investigating, I noticed that my custom entity has a different Entity Key compared to the underlying table's primary index.

  • Target Table: TaxRegistration

  • Data Entity: Custom duplicate of TaxRegistrationBaseEntity

Has anyone encountered this specific key mismatch issue when duplicating this entity? How should I restructure the Entity Key to properly handle the date-effective fields and RecIds so the Data Management framework performs an update instead of attempting a duplicate insert?
also another issue is sometimes i get "Results. update not allowed for field 'TaxRegistration.TaxRegistrationTypeApplicabilityRule'".

Any advice or pointers on how to resolve this mapping would be greatly appreciated!

thanks,
VK
 
Categories:
I have the same question (0)

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 Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 634 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 361 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 283

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans