Skip to main content

Bulk leave entry and past leave import with Excel

Explains how to enter many employees' past leaves with their dates, used leave, extra entitlement and remaining balance at once with Excel during setup, a move from another product or reconciliation, and how to undo an import.

This article explains how to enter many employees' leave with a single file using Bulk Leave Entry (Excel). Users with the LEAVE_ADD_ALL permission do this. Typical uses: bringing past years' leaves over with their dates when moving to Teamso from another product, carrying balances over from a previous system, or reconciling balances at year end.

Before you start

  • Employees must have leave rules assigned (Creating leave rules).

  • For dated leaves, employees must have a work schedule and a public holiday calendar (Setting up work schedules and public holidays); the days are calculated from them.

  • Employees must be in branches you are responsible for; employees with no branch are not matched.

Step by step

  1. In the left menu, go to Time and attendance > Leave and click Bulk Leave Entry.

    Leaves screen
  2. In the Bulk Leave Entry (Excel) window, click Download Template. If you use your own file exported from another product, you can skip this step.

    Bulk Leave Entry window

    The template comes filled with the active employees you manage, their leave rules and current remaining balances.

  3. In Excel, enter an Operation on each row. The operations are:

    • Dated Leave Record: a single leave taken in the past; enter the Start Date and End Date. The days are calculated from the employee's work schedule and holiday calendar; if you fill in Days, it is only compared, a difference is shown as a warning and the calculated days are saved. If the start is not a working day, the leave starts on the first working day.

    • Used Leave: total days used in the past, without dates; deducted from the balance. Dates entered on these rows are ignored.

    • Add Entitlement: extra entitlement (bonus); added to the balance. If the start date is empty, today is used.

    • Remaining Balance: reconciliation; enter the remaining balance it should be, and the difference is saved automatically as used leave or entitlement. Negative values are allowed.

    If the leave rule is empty, the employee's active rule is used; if the leave type is empty, Annual Leave is used. Days cannot exceed 365 and a dated leave cannot last more than a year. The Description column is saved on the leave record of Dated Leave Record and Used Leave rows and can be at most 255 characters; if it is empty, "Toplu izin girişi (Excel)" is written. In your own file without an Operation column, every row with a start and end date is a dated leave record.

  4. Upload the file (XLSX or XLS, max 10 MB, max 5000 rows) and click Continue.

  5. If you uploaded your own file (headers different from the template), the Map the columns window opens. Teamso suggests the fields from the headers; you only need to check the columns it is not sure about. Continue stays disabled until an employee column (National ID, Personnel no or System ID) and Operation or Start date are matched. If Save this mapping stays selected, the next file with the same headers opens with this mapping. This import has no AI matching and spends no credit.

  6. Nothing is saved in the preview. You see each row's Current and New balance, the dates and calculated days of dated leaves, and any error or warning in the Result column. You can filter with Only rows with errors / warnings.

    Bulk leave preview
    • Rows imported before (a leave with the same leave type and dates, or the same record of an earlier import) are marked Already imported and are not added a second time.

    • Rows that overlap another leave of the employee are errors.

    • Dated leaves that fall in a closed payroll period show the period; that payroll is not recalculated.

  7. If there are rows with errors, Download rows with errors gives you those rows of your file with the reasons in a last Error column. Rows with errors do not stop the import: click "Save {count} rows", then Save in the Confirm the entries window.

  8. After fixing the rows with errors, upload the downloaded file (or your whole corrected file) again. Rows saved before count as duplicates; only the ones you fixed are added.

Result

  • The rows without errors are saved as one import; rows with errors and duplicates are skipped.

  • Dated Leave Record rows are written as approved leaves: they show with their dates in the Leaves list, the calendar, the timesheet and the leave reconciliation form, and are deducted from the balance like an approved leave. They carry the Imported record label in the list and the leave detail.

  • Used Leave rows are written as approved, undated leave records; Add Entitlement rows are written as entitlements of type Manual. Employees' remaining balances are updated immediately.

  • The import needs no SMS code, spends no digital credit, skips the approval process and sends no e-mail or notification to employees.

  • Rows for inactive employees, balances that turn negative, leaves ending after today and day differences are shown as warnings; rows that exceed the leave type's negative balance rule are errors.

Undoing an import

  1. Right after saving, you can click Undo this import in the window.

  2. For an older import, click Previous imports in the Bulk Leave Entry window; the list shows each import's date, file, saved rows and status.

    Previous imports
  3. Click Undo on the import's row, then Undo again in the confirmation window. Every leave and entitlement the import wrote is deleted and the balances go back to what they were before the import. Closed payroll periods are not recalculated. You cannot undo an import that has employees of branches you are not responsible for.

Common problems

Symptom: "Employee not found" error on a row.
​Cause: The employee is not in a branch you manage, has no branch, or the identity details do not match the template.
​Solution: Download the template again and use it without changing the system ID column.

Symptom: "The employee has no working or holiday calendar" error on a dated row.
​Cause: The days are calculated from the employee's calendar, and none is assigned.
​Solution: Assign a work schedule and a public holiday calendar to the employee and upload the file again.

Symptom: "The employee has another leave on these dates" error on a dated row.
​Cause: The row's dates overlap another leave of the employee (another leave type or other dates).
​Solution: Check the existing leave in the Leaves screen; if it is right, remove the row from the file, otherwise correct the existing leave and upload again.

Symptom: A row is marked Already imported.
​Cause: A leave with the same leave type and dates exists, or the record was written by an earlier import.
​Solution: No action is needed; the record is not added twice. If you really want to add it again, undo the earlier import first.

Symptom: Error for two Remaining Balance rows for the same leave.
​Cause: An employee can have only one Remaining Balance row per leave.
​Solution: Merge the rows.

Symptom: "The description can be at most 255 characters" error on a row.
​Cause: The description of the row is longer than 255 characters.
​Solution: Shorten the description and upload the file again.

Symptom: After saving, a row says "This row could not be saved, so no row of the file was applied".
​Cause: An unexpected error occurred while a checked row was being saved. In this case no row of the file is written and no balance changes.
​Solution: Check the row and upload the file again. If the same row keeps failing, send the row number to support.

Symptom: "Nothing to save" message.
​Cause: All balances in the file already match the system.
​Solution: No action is needed.

Related articles

Did this answer your question?