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, ...
Suggested Answer

[DMF] Import new and update employees using DMF

(0) ShareShare
ReportReport
Posted on by 109

Hello, i am trying to create a file to import new employees but also to update existing employees at the same time. I am using DMF entity "employee v2" 

For the existing employee i am using their PERSONNELNUMBER, it will alow to modify the employee. 

For the new employee i leave PERONNELNUMBER blank.!

pastedimage1674139113076v1.png

I have a error message for the new employee when importing:

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "The statement has been terminated.".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Violation of PRIMARY KEY constraint 'I_23638STAGINGIDX'. Cannot insert duplicate key in object 'dbo.HCMEMPLOYEEV2STAGING'. The duplicate key value is (5637144576, test employé, test employé-2023-01-19T15:43:42-D09D825E98624FDABFE01539A8CF797A, , SACE, ).".

SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "OLE DB Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "OLE DB Destination.Inputs[OLE DB Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.

SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "OLE DB Destination" (476) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (489). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.

Failed to insert record into staging table. The keys of the record are DEFINITIONGROUP, EMPLOYMENTID, EMPLOYMENTLEGALENTITYID, EXECUTIONID, PARTITION, PERSONNELNUMBER. Duplicate records must be removed from the file prior to import.-The duplicate key value is (5637144576, test employé, test employé-2023-01-19T15:43:42-D09D825E98624FDABFE01539A8CF797A, , SACE, )
'0' 'Employee V2' record(s) inserted in staging

Do you have any idea how to import new employee and modify employee at the same time ?

I have the same question (0)
  • Suggested answer
    ThomasWilke Profile Picture
    766 on at

    To make this happen you have three options:

    1. extend the entity with x++ code to get numbers for the new employees,
    2. devlop your own entity
    3. import the data with two separate imports.
      One import with personal numbers and the other which uses auto default for the personal number to get a new number from the number sequence.
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,679 Super User 2025 Season 2 on at

    Hi Pierre,

    You need to import the new employee first then you can import a new file with PERSONNELNUMBER to update the existing users.

    Alternative is that you decide over Personal number in the file and set the number sequence setup to "Manual", then you need to import Personal number. In this method, you can use your file to update and insert employees since you have ID for Personal number.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans