Showing posts with label HDL template to change hire date. Show all posts
Showing posts with label HDL template to change hire date. Show all posts

Wednesday, 18 January 2023

HDL Template to Change Hire Date of Worker


✅ HDL Template to Change Hire Date of Worker in Oracle Fusion HCM (Worker.dat)

Changing an employee’s Hire Date (Start Date) is a common requirement in Oracle Fusion HCM, especially when correcting wrong employee joining dates loaded from legacy systems or during data migration.

In this blog, you will learn how to change Hire Date of a worker using HDL (HCM Data Loader) with Worker.dat file.


๐Ÿ”ฅ What is Hire Date in Oracle Fusion HCM?

In Oracle Fusion HCM, the hire date is stored at the Work Relationship level.
That’s why to change Hire Date using HDL, you must update the WorkRelationship component inside Worker.dat.


๐Ÿ“Œ HDL File Used

Worker.dat


⚠️ Important Note Before Updating Hire Date

Before you change hire date, ensure:

  • Worker already exists in Fusion HCM

  • You know correct identifiers like PersonId or PersonNumber

  • Hire date change may impact:

    • Payroll

    • Absence

    • Seniority

    • Benefits eligibility

    • Assignment start dates

So always validate in lower environment first.


✅ HDL Template to Change Hire Date of Worker (Worker.dat)

Use below template exactly:

SET PURGE_FUTURE_CHANGES N


METADATA|WorkRelationship|SourceSystemOwner|SourceSystemId|

PersonId(SourceSystemId)|LegalEmployerName|NewStartDate

MERGE|WorkRelationship|XXTEST|XXTEST_HIREDATE1|100009|India Legal Entity|

2002/02/10



๐Ÿงพ Explanation of Fields (Worker.dat)

ColumnMeaning
SourceSystemOwnerYour source system name (ex: XXTEST)
SourceSystemIdUnique record identifier for this HDL row
PersonId(SourceSystemId)PersonId of the worker (can be PersonNumber too in other templates)
LegalEmployerNameMust match worker’s legal employer
NewStartDateThe corrected hire date you want to set

⭐ Why We Use SET PURGE_FUTURE_CHANGES N

This line controls whether future-dated changes should be purged.

✅ Recommended:

SET PURGE_FUTURE_CHANGES N

Because:

  • It keeps future-dated transactions safe

  • Prevents accidental loss of future assignment updates


๐Ÿงญ Step-by-Step: How to Load HDL to Change Hire Date

Step 1: Prepare Worker.dat file

  • Copy the template

  • Replace with your employee values

Step 2: Create ZIP

Zip the file as:

Worker.zip └── Worker.dat

Step 3: Upload in HCM Data Loader

Navigation:

My Client Groups → Data Exchange → HCM Data Loader

  1. Click Import and Load

  2. Upload the ZIP file

  3. Submit the process

Step 4: Validate Results

After load:

  • Check Import and Load Status

  • Review logs if errors occur


✅ How to Verify Hire Date is Updated

Go to:

Person Management → Search Worker → Employment → Work Relationship

Check:

  • Start Date / Hire Date updated correctly


❗ Common Errors and Fixes

1) Legal Employer Name Invalid

Error: LegalEmployerName not found
✅ Fix: Use exact legal employer name from Fusion setup.


2) PersonId Incorrect

Error: PersonId(SourceSystemId) not found
✅ Fix:

  • Use correct PersonId

  • Or use PersonNumber based mapping (if your environment supports)


3) Future Changes Conflict

Error: Cannot update because of future-dated changes
✅ Fix:

  • Review future-dated transactions

  • Keep SET PURGE_FUTURE_CHANGES N


๐Ÿ”— Internal Links 


Oracle HCM HDL: Load Seniority Date Adjustments

  ✅ Oracle HCM HDL: Load / Update Seniority Date Adjustments (V3) – Examples + Worker.dat Templates Seniority Date in Oracle HCM is the dat...