---
title: "Feature: Import leave balances from a file"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:feature-1791282954@main"
source: "Changelog/1.0.0/Feature-1791282954-ImportLeaveBalancesFromAFile.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Feature: Import leave balances from a file {#feature-1791282954}

## Description {#description}

HR imports leave balances from a CSV or XLSX file of at most 5000 rows with `importLeaveBalances`
(`POST /leave-balance-imports`), on the list of leave balances. Each row books an adjustment: the quantity in
`delta` mode, the difference to the balance at the effective date in `target` mode, nothing for a difference
of 0. The import is a dry run unless `dryRun` is false, and books all rows or none; an invalid row rejects the
file with 422 and violations at `rows.<row>.<column>`, where a value from the file is escaped against formula
injection. `getLeaveBalanceImportTemplate` returns a template with the column codes and a help sheet in the
reader's language.

## Impact {#impact}

The new table `leave_balance_import` keeps every upload with its file hash, the requester and the outcome.
Ledger entries of an import have the source `balanceImport`.
