# AupostValidation using Harmony Batch System

The designation of Client Role and Locale within the batch setup indicates the PDP utilized for Australia post asset validation.

## Pre Reading

Please ensure you have read and understood the previous configuration steps detailed below.

{% content-ref url="/pages/VSRyoH5gSDBdv8q7hazS" %}
[Australia Post Parcel Locker Plus Validation](/harmony-suite/user-guides/version-3.0.0/australia-post-parcel-locker-plus-lookup-and-validation/australia-post-parcel-locker-plus-validation.md)
{% endcontent-ref %}

Below is the simple illustration using a small file in Australia with Harmony Batch System. A more comprehensive guide detailing the instructions on how to set up a batch job can be checked here [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

## **Steps to run Batch Job**&#x20;

### **1. Job Config**

It is expected that the customer has configured the [Setup AupostValidation PDP](/harmony-suite/user-guides/version-3.0.0/australia-post-parcel-locker-plus-lookup-and-validation/australia-post-parcel-locker-plus-validation/pdp-configuration-setup.md#setup-aupostvalidation-pdp) prior to executing a batch process.

Log in to HBS UI and select New Cleanse

Select the required Client Role that is attached to the component group that has AupostValidation PDP added.

Select the Locale as Australia

*Example 1: AU Cleanse job profile*

<figure><img src="/files/xYDEQhZ1Pz7DtQn1dxLg" alt=""><figcaption></figcaption></figure>

### 2. Input

#### **Click Input on the left panel to display the Input Reader panel. There are seven tabs in this panel, each with its own set of fields.**

Refer Page No 14 of the [**Harmony Batch System Cleanse Reference Guide**](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md) to get an idea on how to configure the Input file for batch processing.

Quick configuration on how to configure an input file that consists of the fields below is provided here.

**Input File:** File comprises of Id, Input Address

*Example 2: Sample Input file*

<figure><img src="/files/bIvofblKhDqSEyN6Ulbk" alt=""><figcaption></figcaption></figure>

#### **General**

Choose your input file and correct configuration for your phone file.

Full description of the panel is within [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

<figure><img src="/files/w0JClnIAHRsIofIPjXcj" alt=""><figcaption></figcaption></figure>

#### **Detail Record**

Ensure you correctly check the details versus your input file.

Full description of the panel is within [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

<figure><img src="/files/lgtvT2QGroT6HrYQ3AVw" alt=""><figcaption></figcaption></figure>

**Baseline Fields**

Very important step as this information forms part of the Logical Record mapping between your input file and what the HBS system requires to process.

***Auto populate fields:*** If you have ticked 'first detail record represents baseline fields' then right click on white panel and retrieve the field names. This will auto populate the fields.

***Manually enter fields:*** Type your input column names into the table within the panel.

Full description of the panel is within [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

<figure><img src="/files/IUCDe6EwzAXZ720V235N" alt=""><figcaption></figcaption></figure>

#### **Logical Records**

**HBS Logical Record represents the input baseline fields that are mapped to Harmony data models for batch processing.**

The left column "Name" is Harmony name representation for a field.&#x20;

The right column "Generated By" is the Input File name for the field with the same meaning.

Input Address from the baseline fields has been mapped to HARMONY\_ADDRESS.

Input Id is the sequential id from baseline fields, it can be mapped to HARMONY\_ID.

Full description of the panel is within [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

*Example 3: Mock Logical Record mapping*

<figure><img src="/files/iXew8jd00HLDGzoZ1Ff7" alt=""><figcaption></figcaption></figure>

### **3. Preprocessor**

Not Applicable

### **4. Output**

#### **Harmony Output on the left panel represents the configuration of the output file and the fields to be returned in the output file.**

**General:** To configure the file layout specifications.&#x20;

<figure><img src="/files/joL5AziSmQyYRSOFvleX" alt=""><figcaption></figcaption></figure>

**Field Definition:** Defines the fields to be output to the output file.

click on ![](/files/3jIiRdgaPgmvHDSaYdj3) to open the Logical field creation window and then select the input baseline fields the user wish to see in the output file, click Done.  The selected field will then be added to the Name column.

To add the Output fields from AupostValidation PDP to be shown in the output file, click on ![](/files/3jIiRdgaPgmvHDSaYdj3) to add party.address.fieldname

&#x20;party.address.RecordType -->represents validated record type, e.g. "upl" for parcel locker addresses.

party.address.addressLine--> represents validated address etc.

<figure><img src="/files/JwOQp5Ai1yu9tq6fgy8M" alt=""><figcaption></figcaption></figure>

**Sample text output:**

Please refer to the provided sample illustration for the output file of address validation. In the file, "Output\_Address" signifies the matched address derived from AupostValidation. Alongside "Output\_Address," there exist additional output fields representing tokenized validated address components.

**Note:** It's important to note that addresses containing different combinations of Parcel Locker Plus data, such as Parcel Locker and Post Office within the same street, will be treated as ambiguous matches during validation. Consequently, in such instances, the "Input\_Address" will remain unchanged and identical to the "Output\_Address."

<figure><img src="/files/DRK1zpsd52UaMrAa4hFw" alt=""><figcaption></figcaption></figure>

### **5. Exceptions**

Please refer to the [Harmony Batch System Cleanse System Reference Guide.](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md)

### **6. Report**

Please refer to the [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).

### **7. History**

Please refer to the [Harmony Batch System Cleanse Reference Guide](/harmony-suite/user-guides/version-3.0.0/batch-system-cleanse-reference-guide.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mastersoftgroup.com/harmony-suite/user-guides/version-3.0.0/australia-post-parcel-locker-plus-lookup-and-validation/australia-post-parcel-locker-plus-validation/aupostvalidation-using-harmony-batch-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
