Introduction

This tutorial explains the steps to generate HCM Data Loader (HDL) and HCM Spreadsheet Data Loader (HSDL) formatted data files using HCM Extracts and how to automate the import and load of those files. It assumes you already have experience with HCM Extracts, HDL and HSDL.

You use HCM Extracts to retrieve the data you want to include in an HDL or HSDL file. To format the data into the required shape, you create a BI Publisher report with an eText Template layout and reference this in the Data Loader Interface delivery option you define on your extract.

Note:

The Data Loader Interface delivery option is available from release 24A.

On execution of the extract, the Data Loader Interface delivery option places the generated file on the Oracle WebCenter Content server. The delivery option defines parameter values that allow HCM Data Loader to correctly process the file.

A single extract can include multiple delivery options, both for HDL and HSDL processing. The following diagram describes a single HCM extract which includes two delivery options to generate two files. Each file is formatted by a separate eText Template delivered on the same BI Publisher report.

The components to be defined for the flow to work.

To automate the import and load of all generated files for an extract run, you can create a payroll flow pattern which:

  • Submits your extract to generate the HDL and/or HSDL files.
  • Initiates the Run HCM Data Loader task to:
    • Read each delivery option configuration
    • Read the generated file(s) from the Oracle WebCenter Content server.
    • Initiate HCM Spreadsheet Data Loader for each delivery option configured with a Spreadsheet Loader file type.
    • Compress all files generated by all Data Loader file type delivery options into a single zip file.
    • Initiate HCM Data Loader for the resulting zip file.
The components to be defined for the flow to work.

Note:

The Run HCM Data Loader is available from release 24A. This task submits HCM Data Loader as the session user so it can be used with HCM Data Loader's security features enabled. Refer to tutorial Configure Access to HCM Data Loader.

Objectives

In this tutorial you will import a simple HCM Extract, create the BI Publisher report and delivery options to generate both HDL and HSDL files for the Suspend User Account use case. Next, you'll create a payroll flow pattern to submit your extract and initiate HDL and HSDL to process the generated files.

Prerequisites

  1. It's expected that you understand how to create HCM Extracts and how to form and load HCM Data Loader files.
  2. You'll require access to the following functionality in the Oracle HCM Cloud:

    • Extract Definitions
    • HCM Data Loader
    • HCM Spreadsheet Data Loader
    • Reports and Analytics
    • Payroll Flow Patterns
  3. Download and unzip the Suspend User Accounts resources.zip file.
  4. The HSDL solution requires the use of a spreadsheet template to suspend user accounts.

    For the purposes of this tutorial you can suspend user accounts using the pre-configured HSDL template Activate / Deactivate an Existing User Account available on Cloud Customer Connect.

    • Follow the instructions in the Importing HCM Spreadsheet Data Loader Templates tutorial to import this template, specifying a name of Suspend User Accounts and a code of SUSPEND_USER_ACCOUNTS.
    • Edit the imported template to configure a default constant value of Y for the Deactivate attribute.
    • Ensure the role used to execute the HCM Extract is assigned to the spreadsheet template.


Task 1: Create Your HCM Extract

In this step you'll import the Suspend User Accounts extract.

WARNING:

This extract is purely for the purposes of demonstrating delivery options. It's basic, just retrieving all records from the PER_EXT_SEC_PERSON_UE user entity where the person number is like '123%'.

Import the Example Extract

To import the extract:

  1. Navigate to My Client Groups > Data Exchange.
  2. Click Extract Definitions.
  3. Click Import.
  4. Specify the Extract Name as Suspend User Accounts Extract.
  5. Tip:

    The extract name is referenced in the payroll flow pattern parameters defined in Task 5.
  6. Import the XML file you downloaded from the Suspend User Accounts resources.zip file and click OK.
  7. Import extract definition dialog page.
  8. Click OK on the Confirmation message. You're navigated back to the Extract Definitions page.
  9. Search for the Suspend User Accounts Extract imported extract.
  10. Click the extract name to edit the extract definition.
  11. Specify a Consumer for your extract and click Save.

Auto Load Parameter

Create the Auto Load parameter, for the HCM Data Loader end-to-end flow to work.

  1. On the Define page, click Add in the Parameters table toolbar.
  2. Click the add button on the Parameters table toolbar.

  3. Specify the following parameter definition:
  4. Column Value
    Name Auto Load
    Tag Name AUTO_LOAD
    Data Type Text
    Display Yes

  5. Click Save.

Review Extract Tags

Your rtf file used to create your eText Template will reference the tags defined in your HCM Extract to group and export data.

To find these tags:

  1. Edit your extract definition and click the Design tab.
  2. Click the record name within the Object Name hierarchy to review the tag name for the object.
  3. Review the tag defined for the Person record object.

  4. Click on the Attributes tab to review the list of attributes.
  5. The attributes tab is found next to Properties for the object.

  6. Click the attribute name to review the tag for each attribute.
  7. Review the tag defined for the Person record object.


Task 2: Define your BI Publisher File Layout

In this step you would first create the rtf file to output the extracted data into the HCM Data Loader or HCM Spreadsheet Data Loader file format.

Refer to the HCM Extracts documentation and use the Template Builder for Word to create a rft layout that formats your extracted data into the HDL file format.

HCM Data Loader

To suspend user accounts using HCM Data Loader, you need to generate a User file with this structure:

SET PURGE_FUTURE_CHANGES Y
METADATA|User|PersonNumber|Suspended
MERGE|User|{person_number}|Y

For the purposes of this tutorial, review the SuspendUserAccounts.rtf file you downloaded from the Suspend User Accounts resources.zip file.

  • First the SET PURGE_FUTURE_CHANGES Y instruction is generated.
  • The METADATA line is generated once for the User object, specifying the HDL field names PersonNumber and Suspended. The METADATA instruction, object and attribute names are delimited by the '|' pipe character.
  • For each record found in the Person_Record HCM Extracts record, a MERGE line is generated.
  • The External_Person_Number tag is used to output the person number from the extract. The Suspended value is generated from a constant defined in the rtf.

HCM Spreadsheet Data Loader

You can generate a HSDL file layout in the same way as for HDL. The column headers and attribute delimiter will differ though.

For the purposes of this tutorial, review the SuspendUserAccounts HSDL.rtf file you downloaded from the Suspend User Accounts resources.zip file.

  • Only one column is generated by this rtf file with a header of User_PersonNumber.
  • The External_Person_Number tag is used to extract the person number of the user to suspend.
  • There is no value required for the Deactivate column in the HSDL spreadsheet as the value is defaulted by the HSDL template itself.

Tip:

The Import Files into HCM Spreadsheet Data Loader Spreadsheets tutorial explains how to download the csv template which includes the attribute names you'll need for your file header.


Task 3: Define the BI Publisher Report

In this step you’ll create a report to generate the data extracted using the rft files created in Task 2.

Create the BI Publisher Report

  1. Navigate to Tools > Reports and Analytics
  2. Click Browse Catalog.
  3. Click Create > Report.
  4. On the page toolbar click Create, then select Report from the Published Reporting section.

  5. In the Create Report dialog, select Use Data Model.
  6. Select Use Data Model and click search.

  7. Click the Search icon to open the Data Model browser.
  8. Navigate to the folder Shared Folders > Human Capital Management > Payroll > Data Models.
  9. Select the globalReportsDataModel and click OK.
  10. Search for the globalReportsDataModel data model

  11. Select Use Report Editor for how to create your report and click Finish.
  12. Click Use Report Editor and click Finish

  13. Save your report to the Shared Folders > Custom > Human Capital Management > HDL folder, with a name of SuspendUserAccounts.
  14. Tip:

    The report name and path need to be provided to your HCM Extract delivery option so make a note of them.

    Note:

    The HDL sub-directory may not exist so you may need to create it.

Upload the Report Layout

In this step you'll upload your rtf file as the layout for the BI Publisher report. The process is the same for both HDL and HSDL.

  1. Click Upload under the Upload or Generate Layout header.
  2. Click Upload

  3. Specify a Layout Name of Suspend User Accounts HDL.
  4. Tip:

    The layout name needs to be provided to your HCM Extract delivery option so make a note of it.
  5. Click Choose File to search for and select the HCM Data Loader SuspendUserAccounts.rtf file you reviewed in Task 2.
  6. Specify a Type of eText Template.
  7. Specify the Locale.
  8. Define the template file details

  9. Click Upload.
  10. Your report is automatically saved.

    Repeat the Upload the Report Layout steps to create a Suspend User Accounts HSDL layout using the SuspendUserAccounts HSDL.rtf file.


Task 4: Define the HCM Extract Delivery Option

In this step you’ll create delivery options on your HCM Extract to use your BI Publisher report to format the extract output and post that output to the Oracle WebCenter Content server.

Define the Delivery Option

  1. Navigate to My Client Groups > Data Exchange > Extract Definitions
  2. Search for the Suspend User Accounts Extract extract and click the extract name to edit it.
  3. Click on the Deliver tab.
  4. Click Add on the Extract Delivery Options table toolbar.
  5. Click the plus icon to add a deliver option.

  6. Specify the Delivery Option Name as Suspend User Account HDL and specify a Delivery Type of Data Loader Interface.
  7. Click the plus icon to add a deliver option.

  8. Click OK to define the delivery option.

    The Data Loader Interface delivery option provides parameters you'll need to specify for HDL and/or HSDL to be able to process the file generated by the delivery option:

    Field Description
    Output Type 'Text'
    Report The path and filename of the BI Publisher report created in Task 3.
    Template Name The layout name in the BI Publisher report named by the Report field.
    Output Name The name to use for the generated file, without the file extension. For HDL files this must be the business object specific file name.
    Encryption Mode The type of encryption for the generated file. Specify None.

    Tip:

    If you encrypt your file HCM Data Loader can't decrypt it.
    Integration Name A value to identify output files on the Oracle WebCenter Content server. It's concatenated with the process ID to form the Content ID.
    File Type The type of output file.
    Compressed Delivery Group File Type: Data Loader

    The zip file name that all Data Loader generated files will be compressed together in. You must supply the same value, with a .zip extension, for all Data Loader delivery options within the same extract.

    File Type: Spreadsheet Loader

    Not required.

    Compress Specify No. The Run HCM Data Loader process handles the zipping of HCM Data Loader generated files.
    Spreadsheet Template Code The code of the HSDL template to upload data with.
    Spreadsheet File Date Format Date format used for attributes with the date data type. The default format is YYYY/MM/DD.
    Spreadsheet File Delimiter Characters used to separate values in the file. The default is comma.
    Spreadsheet File Escape Indicator Characters used to escape the delimiter characters within an attribute value. The default is backslash.
    Spreadsheet File Header Included Indicates if a header is included in the source file to name the attributes included in the file. The default value is Y.
    Spreadsheet New Line Indicator Characters used to indicate a new line. The default value is n, prefixed with the escape character.

    Tip:

    The Override File Extension parameter isn't used.

  9. Specify these parameter values for the HDL delivery option:
    Output Type Text
    Report /Custom/Human Capital Management/HDL/SuspendUserAccounts.xdo
    Template Name Suspend User Accounts HDL
    Output Name User
    Encryption Mode None
    Integration Name SUA
    File Type Data Loader
    Compressed Delivery Group User.zip
    Compress No

  10. Click OK.

  11. Repeat the above steps to create the Suspend User Accounts HSDL delivery option.

    For the HCM Spreadsheet Data Loader Delivery Option specify these parameter values:

    Output Type Text
    Report /Custom/Human Capital Management/HDL/SuspendUserAccounts.xdo
    Template Name Suspend User Accounts HSDL
    Output Name Suspend User Accounts HSDL
    Encryption Mode None
    Integration Name SUAHSDL
    File Type Spreadsheet Loader
    Compressed Delivery Group
    Compress No
    Spreadsheet Template Code SUSPEND_USER_ACCOUNTS

  12. Click Validate to navigate to the Extract Execution Tree.
  13. Click Validate on the table toolbar.
  14. Click the validate button on the table toolbar.

    Tip:

    You may need to refresh the table.
  15. Review and resolve any validation errors.

Test the File Generation

In this step you'll confirm that the files are generated in the shape you require.

From the Extract Definitions page:

  1. Search for your extract and click Submit Extract.
  2. Click the submit extract icon on the row action

  3. Specify an Extract Instance Name and provide the Effective Date parameter with today's date.
  4. Specify a name and the effective date.

  5. Click Submit. This navigates you to the View Extract Results page.
  6. Click Refresh until your extract instance has completed.
  7. Click the name of your extract flow instance to display more information.
  8. Click the flow instance name.

  9. Expand the Extract Delivery Options section.
  10. Click the file download icon against the output file and review the output.
  11. Download the output file.

    Tip:

    The file name is generated from the Output Name defined on each delivery option.
  12. Make any changes necessary to your rtf layout file for your BI Publisher report, until the generated output file can be successfully loaded with HCM Data Loader.


Task 5: Define the Payroll Flow Pattern

In this step you'll define a payroll flow pattern to submit your HCM Extract and initiate the Run HCM Data Loader task to process the files your extract generates.

Create the Payroll Flow Pattern

  1. Navigate to My Client Groups > Payroll > Payroll Flow Patterns.
  2. Create a new flow.
  3. Optionally specify a Legislative Data Group and click Continue.
  4. Click Continue.

  5. Specify the Suspend User Accounts name for the Flow Pattern, optionally provide a description and set the LDG Required value.
  6. Check both the HCM Extracts and Preparations checkboxes for the Activities to Include value.
  7. Specify the name and select the activity types.

  8. Scroll and select the Suspend User Accounts Extract and Run HCM Data Loader tasks.
  9. Select the tasks for your extract and Run HCM Data Loader.

  10. Click Next to navigate to the Task Sequence page.
  11. Edit the Following Task values to ensure the tasks are in this order:
  12. Task Following Task
    Start Flow Suspend User Accounts Extract
    Suspend User Accounts Extract Run HCM Data Loader
    Run HCM Data Loader End Flow

Define the Process Flow Parameters

  1. Click Next to navigate to the Parameters page. Create the following parameters:
  2. Effective Date
    Field Value
    Flow Parameter Effective Date
    Display Yes
    Display Format Date
    Sequence 10
    Key Parameter Process Date

    Process Configuration Group
    Field Value
    Flow Parameter Process Configuration Group
    Display Yes
    Display Format Smart LOV
    Lookup Process Configuration Group|ActionParameterGroupPVO
    Sequence 20

    Start Date
    Field Value
    Flow Parameter Start Date
    Display Yes
    Display Format Date
    Sequence 30

    Auto Load
    Field Value
    Flow Parameter Auto Load
    Display Yes
    Display Format Text
    Sequence 40
    Parameter Basis Constant Bind
    Basis Value Y

    Base Extract Name
    Field Value
    Flow Parameter Base Extract Name
    Display No
    Display Format Text
    Sequence 50
    Parameter Basis Constant Bind
    Basis Value Suspend User Accounts Extract

    Report Category
    Field Value
    Flow Parameter Report Category
    Display No
    Display Format Smart LOV
    Lookup Report Category|OverridingReportCategoryPVO
    Sequence 60
    Parameter Basis Post SQL Bind
    Basis Value select to_char(report_category_id) from pay_report_categories where base_category_name='Suspend User Accounts Extract'

Configure the Task Parameters

  1. Click Next to navigate to the Task Parameters page.
  2. Select the Suspend User Accounts Extract HCM extract record.
  3. Edit the task sequence so the extract is submitted before HCM Data Loader.

  4. Update the Effective Date parameter, setting the Basis Value to Effective Date. This task parameter will now accept the value of the Effective Date parameter from the payroll flow.
  5. Set the Basis Value to Effective Date

  6. Update the Auto Load parameter, ensuring the Parameter Basis is Bind to Flow and setting the Basis Value to Auto Load. This task parameter will now accept the value of the Auto Load parameter from the payroll flow.
  7. Set the Basis Value to Auto Load

  8. Update the Process Configuration Group parameter, ensuring the Parameter Basis is Bind to Flow and setting the Basis Value to Process Configuration Group. This task parameter will now accept the value of the Process Configuration Group parameter from the payroll flow.
  9. Set the Basis Value to Process Configuration Group

  10. Update the Start Date parameter, ensuring the Parameter Basis is Bind to Flow and setting the Basis Value to Start Date. This task parameter will now accept the value of the Start Date parameter from the payroll flow.
  11. Set the Basis Value to Start Date Group

  12. Select the Run HCM Data Loader task in the Tasks table.
  13. Note:

    You need to define the basis value for the Extract Process Flow Name, but the list of values isn't available until the process flow pattern is saved. You'll edit this parameter after creating the flow.
  14. Click Next to navigate to the Review page and click Submit.
  15. You're returned to the Payroll Flow Patterns page.

  16. Search for your new payroll flow task and click Edit.
  17. In the Tasks panel, click Go to Task on the Run HCM Data Loader task.
  18. Click go to task on the Run HCM Data Loader row.

  19. Edit the Extract Process Flow Name parameter ensuring the Parameter Basis is Bind to Flow Task and setting the Basis Value to Suspend User Accounts Extract , Submit , Payroll Process.
  20. Click go to task on the Run HCM Data Loader row.

  21. Click Submit.

Task 6: Submit the Payroll Flow

In this step you'll submit your flow and monitor the results.

  1. Navigate to My Client Groups > Data Exchange
  2. Click Submit a Flow.
  3. Search for the Suspend User Accounts flow.
  4. Search for the Suspend User Accounts flow

  5. Click the flow name to navigate to the Submit a Payroll Flow page.
  6. Specify a name for the payroll flow. This can be any unique value.
  7. Specify an Effective Date.
  8. click the submit button

  9. Click Submit which will navigate you to the Payroll Checklist page.
  10. Periodically click Refresh until both the extract and Run HCM Data Loader process are complete.
  11. Search for the Suspend User Accounts flow

  12. Click the Run HCM Data Loader task name to navigate to the Import and Load Data task where you can review the data set status and any messages raised.

Tip:

If you use the File Import and Export UI you can identify the generated files using the Content ID. The delivery option Integration Name is appended with the Process ID of the Archive Information and Generate Report process submitted by your extract
Search for the Suspend User Accounts flow

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.