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

Notifications

Announcements

No record found.

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
    301,025 Super User 2025 Season 2 on at
    Hi Brad,
     
    Have you checked in the Past workers form if a worker with the personnel number already exists?
  • b_radlyjames Profile Picture
    3,155 on at
    Thank you for the response.  There are no past workers in the system.
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    Hi,
     
    Please follow the steps described in the MS document and add the Dual write app user and dual-write runtime user security role for the Team to see if it can help.
     
     
    Best Regards,
    Judy
  • b_radlyjames Profile Picture
    3,155 on at
    Judy,
     
    Thank you for your response.  None of the errors on your link matched the error we are facing.
    Also, we are able to do an 'Initial sync' of the workers entity from F&O and successfully upload 270 workers.
    I don't think this is a security issue.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    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.
  • b_radlyjames Profile Picture
    3,155 on at
    This error is originating from the dataverse and being passed through to F&O when a Worker record insert is attempted.
  • b_radlyjames Profile Picture
    3,155 on at
    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
    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.
     
  • Navneeth Nagrajan Profile Picture
    2,430 Super User 2025 Season 2 on at
    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
    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?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans