Usecase: Here we will perform the following actions:
- First upload file to UCM
- ImportAndLoad using HCMDataLoader service.
Usecase: Here we will perform the following actions:
Please find below table for different job status and their meanings:
NOT STARTED
The process has not started yet. It is waiting or ready. If this value is returned please poll again after some wait.
DATA_SET_UNPROCESSED
The process is running, but the data set has not been processed yet.
IN_PROGRESS
The process is running.
COMPLETED
The data set completed successfully. Job is completed, you can fetch the output.
CANCELLED
Either data set load or data set import was cancelled. Job is cancelled.
ERROR
The data set or process in error. Job has ended in error.
Usecase: Here, we will see how to import data for business objects wih the HCM data loader from OIC Integration.
Here, I will import Grade.dat file.
Before proceeding further, read my below blogs:
Highlevel steps:
Integration flow:
Detailed steps with Screenshots:
Create Oracle HCM Cloud Connection
Read file using FTP adapter
Write file to stage:
Zip the file
Import the zipped file
Follow the below steps:
Step1: In the application, on the home page, click My Client Groups > Data Exchange
Step2: On the Data Exchange page, click Import and Load Data
Step3: Click Import File on the page header.
Tip: You don’t need to change the parameters values.
Step6: Click OK on the Submitted confirmation page. You’re returned to the Import and Load Data page. Go to Recent File Loads
The Import Status will indicate if the business object .dat files in your zip file imported into the staging tables correctly. Here you can see that import was successful.
The Load Status will indicate if the data is successfully loaded in the Oracle HCM Cloud application tables. The clock icon indicates that Load is still in progress.
There are various counts; your file contained 5 data lines, so the Total Lines should be 5. In this simple file the 5 lines represented 5 grade objects, so the Total Objects should also be 5. 2 grades lines failed, 3 load success, total 60% load success.
The HCM data loader provides a template file which is a .dat file for each supported business object hierarchy.
The template contains:
A COMMENT line:
Identifies the business object its version, and the file-creation date.
Example,
COMMENT data for Business Object: Grade Version: V2 Created on: 14-05-2024
A METADATA line:
All files must include METADATA lines, to explain which attributes are included in the file and the order in which their values are supplied.
example,
METADATA|Grade|GradeCode|SetCode|GradeName|EffectiveStartDate|ActiveStatus
All attribute names and values are delimited by the pipe ‘|’ character by default.The string immediately after the METADATA instruction identifies the record type the attributes are for, in this case ‘Grade’. The values that follow are the names of the attributes available on the Grade record, that you want to supply data for.
Note: Ensure your text editor is using UTF-8 encoding.
A Data line:
The lines which holds the actual data for the business object to be imported.
Example,
MERGE|Grade|IC1|COMMON|Individual Contributor 1|2000/01/01|A
The MERGE instruction tells HDL to create the grade if it doesn’t already exist, or update it if it does.Again, the value immediately after the MERGE instruction identifies the record type the attributes for. The values that follow are the values for the attributes named in the corresponding METADATA line.
Add these MERGE lines to your file:
MERGE|Grade|IC2|COMMON|Individual Contributor 2|2000/01/01|A
MERGE|Grade|IC3|COMMON|Individual Contributor 3|2000/01/01|A
MERGE|Grade|M1|COMMON|Manager 1|2000/01/01|A
MERGE|Grade|M2|COMMON|Manager 2|2000/01/01|A
Each record needs to be uniquely identified. For grade records the user key is the combination of GradeCode and SetCode, i.e. IC2 and COMMON.
Save your file, naming it Grade.dat. Alternatively, you can download and edit the Grade.dat file.
Compress (zip) the Grade.dat into a filename of your choice, but it must have a .zip file extension. You have created your first HCM Data Loader file for bulk loading grades. Follow the next step to import this into the HDL staging tables and load the data into the application tables.
Modifying Template and Integration Mapping File (nxsd) for OIC
Let’s take the example of Grade Business Object, when I download the default .dat file it brings in all attributes,
Now first create a sample dat file as per requirement,
remove all columns that you will not be loading data into via HDL. Once the requirements are clear. You will have to modify the relevant nxsd file.
Now let’s look at the original nxsd file that was downloaded from HCM.
Before we start removing the elements that do not appear in our sample .dat file.
We need to pay close attention to the following:
So here is my modified nxsd file related to the sample .dat file.
Now when I perform the mapping in OIC, this is how it looks.
Reference:
1. Export 11g OSB code and import in 12c Jdeveloper. Steps to import OSB project in Jdeveloper: File⇾Import⇾Service Bus Resources⇾ Se...