---
title: "Importing Leave Dates to MyWorkplace"
id: "importing-leave-dates-to-myworkplace"
project: "MWP Knowledge Base"
url: "https://help.cloud5.com.au/articles/mwp-knowledge-base/importing-leave-dates-to-myworkplace"
keywords:
  - "Employees"
  - "Import"
  - "Leave"
  - "Payroll"
  - "Users"
updated: 2026-12-02T01:10:27Z
---

# Importing Leave Dates to MyWorkplace

## Overview

A generic comma separated file format has been developed for importing and cancelling leave dates from a text file. There are two formats of the text file available. The first is for importing data that does not contain a flag indicating whether Leave in Advance (LIA) is to be used. The second caters for using a LIA flag, and for cancelling leave.
 
## Specifications

1 No LIA, No Cancellations Where no LIA flag is to be passed and cancellations are not required, the format for import is:
 
&lt;employee no&gt;,&lt;start date&gt;,&lt;end date&gt;,&lt;leave code&gt; For example: 10100,03/05/2018,15/05/2018,ALV
 
The Character value of the Parameter Settings value ‘LEAVE\_IMPORT\_FILE’ in MyWorkplace indicates the directory and file name to import.
 
2A Leave in Advance Where leave is imported and an LIA flag is to be passed, the format is: &lt;employee no&gt;,&lt;start date&gt;,&lt;end date&gt;,&lt;leave code&gt;,&lt;LIA Flag&gt; For example: 10100,03/05/2018,07/05/2018,ALV,1
 
The LIA Flag field in this format can be set to 0 or 1 where: 0 – Indicates the Leave is not to be paid in advance 1 – Indicates the Leave is to be paid in advance
 
2b Leave cancellation Where a leave cancellation is imported the format is: &lt;employee no&gt;,&lt;start date&gt;,&lt;R&gt; For example: 13872,29/04/2018,R
 
Leave cancellations have three fields. Leave bookings have four or five fields. These transactions can co-exist in one file.
 
Transaction sequence in the file must be the same order as the employee/user entered those transactions (must follow a logical progression).
 
The Character value of the Parameter Settings value ‘LIA\_IMPORT\_FILE’ in MyWorkplace indicates the directory and file name to import.
 **Need help?** For LIA to process correctly, a ‘Default’ Leave-in-Advance rule must be defined in Corporate Defaults in MyWorkplace. You can obtain details of the rule from Fusion5 Customer Centre 1300 156 640.
 
Notes: • The file contents must follow a logical sequence of events (i.e. enter leave, cancel that leave, enter new leave) • The content of the Leave Code field must be an exact match with the Absent Reason code in the appropriate pay group in MyWorkplace. • Leave cancellations will only occur if included in LIA type file. LIA\_IMPORT\_FILE must also be set in Parameter Settings in MyWorkplace. Cancellations will not work if LEAVE\_IMPORT\_FILE setting is used. • There must be one blank row (carriage return) at the end of the data in the file. • The Import process occurs as part of the standard Clockings Import. • The file name will be leave.csv or other agreed name. • Any errors can be seen by using the frame ‘fm\_import\_data’ only if LEAVE\_IMPORT\_FILE setting is in use. This Frame can also be used to Import and Process the data if required. • The Import process creates the records in the Advance Leave tables. • The Imported file is renamed using our standard method of appending the Date & Time to the file name.