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 


❓ FAQ (Add in Blog)

Q1. Can we change hire date in Oracle Fusion HCM using HDL?

Yes, hire date can be updated using Worker.dat by updating the WorkRelationship record with NewStartDate.

Q2. Which HDL file is used to change hire date?

You must use Worker.dat.

Q3. What is the correct component for hire date change?

Hire date is maintained in WorkRelationship component.

Q4. What is NewStartDate in Worker.dat?

NewStartDate is the corrected hire date that you want to apply to the worker.

Q5. Do we need to purge future changes?

No, recommended setting is:
SET PURGE_FUTURE_CHANGES N

Q5. Can we change the hire date in past or prior to worker record?

No, we can not change the hire date prior to worker record.

๐ŸŽ“ Oracle HCM Technical Training  

If you want to learn Oracle Fusion HCM Technical in a structured way, I also provide Oracle HCM Technical with real-time practical examples.

If you want Oracle HCM Technical Training, you can contact me here: Link



No comments:

Post a Comment

HDL vs HSDL in Oracle HCM Cloud

  ✅ HSDL vs HDL in Oracle HCM Cloud – What’s the Difference? (Complete Guide) If you work on Oracle HCM Cloud , you’ve definitely heard abo...