Payroll Import

Import payroll data from Excel or CSV into the General Journal.

📋 Supported File Formats

You can import data from two file types:

Excel Files

  • Format: .xlsx or .xls
  • Row 1: column headers (e.g. Posting Date, G/L Account No., Description, Debit Amount, Credit Amount, Dimensions...)
  • Row 2 and below: data to import
  • Recommended encoding: UTF-8

CSV Files

  • Text format: .csv
  • Field separator: semicolon (;)
  • The header row is skipped if its first field is exactly PostingDate or Posting_Date.
  • The remaining rows contain the data to import.
  • Encoding: UTF-8

🗃️ Data Structure

Put the columns in the order below. The importer reads columns by position and does not map them by header name. For Excel, it always skips the first row.

Column Description Type Required
Posting Date Transaction date Date Optional*
Line Type Account type; leave empty for G/L in Excel Text Depends on format
Document No. Document number Code[20] Optional*
G/L Account No. General Ledger account number Code[20] Required
Description Transaction description Text[50] Required
Debit Amount Debit side amount Number Optional
Credit Amount Credit side amount Number Optional
Dimension Value 1 First dimension value code Code[20] Optional
Dimension Value 2 Second dimension value code Code[20] Optional
Dimension Value 3 Third dimension value code Code[20] Optional

If not provided in the file, values will be taken from settings or entered during import.

⚙️ Dimension Setup

Before your first import, configure dimensions in N24 Core Extension Setup:

Payroll_Import_Setup

In the Payroll Import section, set:

  • Payroll Dimension 1
  • Payroll Dimension 2
  • Payroll Dimension 3

Important: You only need to configure dimensions if your import file contains data in the corresponding dimension columns. The system will check the configuration during import and display an error only when:

  • The file contains values in a dimension column (e.g., Dimension 1), but
  • The corresponding dimension is not configured in the setup

This allows you to import data without having to configure all three dimensions if you don't use them.

📥 How to Import Data

Start the import from the General Journal:

Payroll_Import_Run

Import Steps

  1. In the General Journal, select N24C | Import Payroll (Excel) or N24C | Import Payroll (CSV).
  2. Set the default posting date and document number if needed.
  3. Choose the file. For Excel, also select the worksheet.
  4. Business Central reads the columns in order and adds the lines to the journal.

📤 Export Sample File

You can generate a sample Excel file with the correct structure:

  1. Go to N24 Core Extension Setup
  2. In the Payroll Import section, click Export sample file
  3. You will receive a file with sample data and headers

📘 Examples and Scenarios

The examples cover payroll imports from an Excel worksheet and a semicolon-delimited CSV file.

Scenario: Monthly payroll import from an HR system

Need: A company uses an external HR/payroll system that generates an Excel file with payroll entries. The accountant must enter this data into the General Journal in BC every month — manually typing 200 lines takes several hours.

Steps:

  1. Export the payroll from the HR system to an Excel file (format: date, G/L account, description, debit, credit, cost center).
  2. Open the General Journal in Business Central.
  3. Click N24C | Import Payroll (Excel).
  4. Select the file and worksheet. The importer reads the columns in the order listed in Data Structure.
  5. After import, the 200 lines appear in the journal with dimensions based on the setup.
  6. Check the balance and post the journal.

Result: The payroll lines are added to the journal without manual reentry.


Scenario: Import from a CSV file with semicolon separator

Need: The HR system only exports data in CSV format with a semicolon separator. The accountant wants to import this file without converting to Excel.

Steps:

  1. In the General Journal, click N24C | Import Payroll (CSV).
  2. Arrange the columns in the order listed in Data Structure and use ; as the separator. If the file includes a header, put PostingDate or Posting_Date in its first field.
  3. Select the CSV file to import.

Result: The payroll lines are added to the journal without converting the file to Excel.

Tip

Before the first import, configure dimensions in N24 Core Extension Setup. If your file doesn't contain dimensions — you don't need to configure them.