Thursday 19 October 2017

Oracle Fusion HCM Data Loader (HDL) Keys Significance

HCM Data Loader (HDL) Keys

Supported Key Types:
HCM Data Loader (HDL) supports 4 different types of keys as listed below 
  1. GUID – Oracle Fusion Global Unique ID
  2. Oracle Fusion Surrogate ID
  3. Source Keys
  4. User Keys 
Key Resolution Sequence (Key references are resolved) in the following order:

1. Oracle Fusion GUID

2. Source key

3. Oracle Fusion surrogate ID

4. User key

Important Notes 
1. While  Create/First time Loading any object(s) we have to consider only SOURCE KEY / USER KEY no need to think about GUID or Surrogate ID (because those are created only after an object created in fusion).
2.While Modify/Updating/DELETE any object then all four keys comes into picture.

If you supply multiple key values, then they are used in this order with no cross-validation. For example, if you supply both a GUID and a source key, then the GUID is used to identify the record and the source key is ignored. If the source key references a different record from the GUID, then no error is raised.
These key types are explained below:

Oracle Fusion GUID
Integration Key Generated by Fusion
  • Generated in Oracle Fusion when a record is created
  • Hexadecimal value
  • Unique across all objects
  • Held in Integration Key Map
Oracle Fusion Surrogate ID
Fusion Generated Unique ID
  • Generated in Oracle Fusion when the record is created
  • Numeric value
  • Unique only for the object type
  • Held on the object
Source Keys
Source System Key Information
  • Two values combined:
    • SourceSystemOwner
    • SourceSystemID
  • Held in Integration Key Map

User Keys
User Readable and Generated Keys
  • Natural values
  • One or many attributes
  • Sometimes alternatives
  • Sometimes updateable
  • Held on the object definition
     

Key Type
Create
Update
Held on Object
Type
Generated Automatically
GUID
No
Yes
No
Hexadecimal
Yes
Surrogate ID
No
Yes (see note #1)
Yes
Numeric
Yes
Source Key
Yes
Yes
No
Alphanumeric
Conditionally (see note #2)
User Key
Yes
Yes (see note #3)
Yes
Alphanumeric
No
Notes:-
  1. You can use surrogate IDs when updating objects, but the IDs may not be readily available to Oracle HCM Cloud users.
  2. Default source keys are generated only if you don't supply a source key when creating an object.
  3. You can't use user keys alone when updating some objects because their values are subject to change.
  4. Keys that aren't held on the object exist in the Integration Key Map table.
Integration Key Map table
Keys that aren’t held on the object are stored in the HDL integration key map table - HRC_INTEGRATION_KEY_MAP. You should be able to use BIP to fire up a SQL statement and view the contents of this table. e.g. 
/* Formatted on 2017/09/12 14:25 (Formatter Plus v4.8.8) */
SELECT object_name
     ,source_system_id
     ,source_system_owner
     ,surrogate_id
     ,RAWTOHEX (guid) guid
FROM fusion.hrc_integration_key_map
WHERE source_system_owner = 'STUDENT1'


Business Object
Fusion GUID
Source Key
Surrage ID
User Key
Location
88ABCD164738983
STUDENT1_LOC1
 8899933355517
 (Set code and Location Code) COMMON, HQ1
  • Fusion GUID: System generated GUID
  • Source Key:  Source System Owner is the reference to source application like PS or EBS, Source System Key is the actual key\id provided in the Location.dat file. 
  • Surrogate ID: System generated. In this case it is the primary key from locations record. e.g. select * from PER_LOCATION_DETAILS_F_VL  where location code = 'STUDENT1 Location1‘   (Result Location ID = 8899933355517)
  • User Key:- Best way to get this info is the Business Object Documentation from MOS or other option is UI as shown below. Online page should highlight user keys with




10 comments:

  1. Such an ideal piece of blog.Thanks for sharing
    Oracle SOA Online Course

    ReplyDelete
  2. Such a nice blog, I really like what you write in this blog, I also have some relevant Information about Best HR Training In Hyderabad | Hr training institute in Hyderabad! if you want more information.
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training
    Oracle Fusion Financials Online Training
    Big Data and Hadoop Training In Hyderabad

    ReplyDelete
  3. Hi ,

    I'm getting error:The line for component PersonAddress with instruction MERGE does not include values that define a unique reference to the record, while updating the address fields by using HDL. I tried using GUID and primary key of the table as attribute then the statement just gets imported and fails to load.Please help.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.

    oracle fusion financials online training

    ReplyDelete
  6. Thank you for sharing such a nice and interesting blog with us. I have seen that all will say the same thing repeatedly. But in your blog, I had a chance to get some useful and unique information.

    oracle fusion scm online training

    ReplyDelete