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

Community site session details

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

HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field

(1) ShareShare
ReportReport
Posted on by 3,155
We are attempting to import records into F&O and then have dual-write push them into the dataverse.  Some of our workers have been inserted without issue, however, others end up throwing this error:
 
Results. Unable to write data to entity cdm_workers.Writes to HcmWorkerEntity failed with error message Request failed with status code PreconditionFailed and CDS error code : 
0x80060892 response message: A record that has the attribute values Worker Number already exists. The entity key Worker Number requires that this set of attributes contains unique values. 
Select unique values and try again.. Activity ID for troubleshooting {GUID}
 
I have confirmed that the 'Woker Number' (Personnel number in F&O) is not a duplicate.  This lead me to believe that there is something else happening.
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    298,959 Super User 2025 Season 2 on at
    HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field
    Thanks for the update, Brad. Do you want to have the question open, pending another reply from Microsoft or do you want to mark a reply to set this question to answered.
  • Verified answer
    b_radlyjames Profile Picture
    3,155 on at
    HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field
    The only response from Microsoft on this was to use virtual entities instead of dual-write.  I was able to confirm that this does work and workers now successfully push to the dataverse.
    I'm still hoping for a solution to the dual-write issue from MS.
  • b_radlyjames Profile Picture
    3,155 on at
    HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field
    Andre,
     
    Thank you.  I was able to find the known issue referenced by Navneeth, however, it isn't the same error nor does it apply to what we are doing.
    We have engaged our partner and are hoping to get a path forward soon. I will post here when some sort of resolution or work around is reached.
     
    Brad
  • André Arnaud de Calavon Profile Picture
    298,959 Super User 2025 Season 2 on at
    HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field
    Hi Brad,

    In case the field mapping on the dual write settings are correct, you can check LCS issue search for known issues or log an incident for Microsoft Support.
  • b_radlyjames Profile Picture
    3,155 on at
    HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field
    Navneeth,
     
    1. No, I am not creating the worker with compensation details.
    2. No, there have been no pauses during our various testing scenarios.
    3. No.
    4. No.
    Could you post a link to the known issue?
  • Navneeth Nagrajan Profile Picture
    2,179 Super User 2025 Season 2 on at
    HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field
    Hi,

    A few questions:
    1. Are you creating a worker with compensation details or you are excluding the compensation details while creating the worker?
    2. Were there any pauses being made while synchronizing the worker details?
    3. Are you using the Worker actions feature alongwith the compensation details?
    4. Do you have the Worker Person Details map enabled?

    If questions 1 and 3 is a yes, then this is a known issue. If question number 4 is a yes, then there is a new entity that's not using the worker as a root data source. 
     
    Happy to answer questions, if any.
  • b_radlyjames Profile Picture
    3,155 on at
    HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field
    Another scenario tested:
     
    I deleted ALL records in the dataverse Workers (cdm_workers) table, turned on dual-write (No initial sync), and then attempted to create a new worker in F&O.
    Same error.
     
  • b_radlyjames Profile Picture
    3,155 on at
    HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field
    Another note on this:
     
    If I turn of dual-write and then insert my records, it works.  I can also turn dual-write back on and run the initial sync.
    That will sync over the new records I inserted.
     
    However, once dual-write is running again, the error will occur when creating new records.
  • b_radlyjames Profile Picture
    3,155 on at
    HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field
    This error is originating from the dataverse and being passed through to F&O when a Worker record insert is attempted.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    HcmWorkerEntity to cdm_workers duplicate record on 'Worker number' field
    I don't think so the error is actually coming from FO. Can you check with the dataverse team? Because if it is in FO you can simply connect with db from any dev vm and check the duplicate records either from the importing data or existing records. If not and this error is coming when trying to write into dual write to dataverse then I think it can be from dataverse.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,239

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 903 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 604 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans