Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

[DMF] Import new and update employees using DMF

(0) ShareShare
ReportReport
Posted on by 105

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 ?

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    Alireza Eshaghzadeh 13,564 Super User 2025 Season 1 on at
    RE: [DMF] Import new and update employees using DMF

    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.

  • Suggested answer
    ThomasWilke Profile Picture
    ThomasWilke 760 on at
    RE: [DMF] Import new and update employees using DMF

    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans