How the export works
With the PAXml integration, Project Flow creates a payroll file in the PAXml format, the common Swedish format for importing hours, absence and expenses into a wage system (lönesystem). You download the file from Project Flow and import it in your wage system.
- What can be in the file: hours, overtime, absence, hour balance, expenses, schedules and co-worker details. You choose what to include.
- Format: PAXml 1.0 (LÖNIN), checked against the official PAXml schema before you get the file.
- Codes: each row gets a PAXml code (tidkod), for example
ARB,SJKorÖT1, that you set on overtime categories, absence types and compensation types in Project Flow. - Fortnox Lön? Use the integration Fortnox PAXml instead, which creates PAXml 2.0 for Fortnox. See the article Fortnox PAXml.
Before you start
Co-workers
Every co-worker who should be in the file needs an External employee number (Extern anställds nummer), the same as their employee number (anställningsnummer) in the wage system. Co-workers without it are left out of the file, without a warning.
Tip: in the general co-worker settings, tick External employee number is required when adding new co-workers.
PAXml codes
Set the PAXml code in the field External pay type code (Kod för extern betalningstyp):
| Where | Code for | Example |
|---|---|---|
| General co-worker settings: Default external pay type code (Standardkod för extern lönetyp) | Normal hours | ARB or TID |
| Each overtime category | Hours on that overtime category | ÖT1 (paid overtime), ÖK1 (overtime to comp time), FLX (flex) |
| Each absence type | That absence | SJK (sick), SEM (vacation), VAB |
| General co-worker settings: Hour balance external pay type code (Extern lönetypskod för medarbetarens tidsaldo) | Hour balance | FLX |
| Each compensation type for expenses (Extern lönetypskod) | Expenses | UTLÄGG |
- Only valid PAXml codes. Project Flow checks the codes when you save, and shows the valid codes if one is wrong, for example "The absence pay type code is invalid for use with PAXml integration. Use one of the following valid codes: …".
- The code decides the balance. The wage system uses the code to decide where the hours go. For example,
ÖK1–ÖK5go to the comp time balance (kompsaldo), andFLXto the flex balance (flexsaldo). Agree the codes with whoever runs payroll. - Empty code, no row. Hours on an overtime category, and absences of a type, without a code are left out of the file. They aren't sent as normal hours either.
- Not used: the field External salary code (Extern lönekod) on overtime categories isn't used by PAXml.
Set up the integration
- Go to Setup → Settings → Integrations (Inställningar → Integrationer) and switch to the tab Export to file (Exportera till fil). You need administrator access.
- Click + Create integration and choose PAXml.
- Choose what to include (see below), tick Enabled and save.
Project Flow plan. The integration isn't available on the Start plan.
Your company in the file. The organization number and name come from Setup → Company.
What to include
| Setting (EN / SV) | What it adds to the file |
|---|---|
| Export type / Exporttyp | Time records (default): hours and absence as time transactions (tidtransaktioner). Salary data or Time records and salary data: also salary transactions (lönetransaktioner), needed for expenses. |
| Export time registration / Exportera timmar | Normal hours, with the default code |
| Export overtime / Exportera övertid | Hours on overtime categories, with each category's code |
| Export absence / Exportera frånvaro | Absence, with each absence type's code |
| Export hour balance | One row per day with the day's plus or minus hours, with the hour balance code. Requires Use extra time (hours balance) in the co-worker settings. |
| Export expenses / Exportera utlägg | Approved travel and expense claims, with each compensation type's code. Only with an export type that includes salary data. |
| Include schedules / Inkludera schema | Each co-worker's scheduled hours per day |
| Include co-workers / Inkludera medarbetare | Name and address of the co-workers, either always or only when they have transactions |
Options per section. Most sections can also:
- Include project and Include department, the project's or the co-worker's, as result units (resultatenheter).
- Filter data by compensation type: only salaried (Månadsavlönad), only hourly (Timlön), or both.
Co-worker department / Project department. Choose whether the department in the file comes from the department in Project Flow, or from a tag group.
Advanced
- Include <omfattning> in the export file: adds the share of the day's schedule each row covers, in percent. Some wage systems use it for part-time absence.
- Specify the basis for holiday pay/holiday days (Ange grundlag för semesterlön/semesterdagar): marks the rows whose code counts towards holiday pay. Choose the codes in the list.
ARB,TIDandFLXare selected by default.
Create the file
- Make sure everyone has registered their hours and absence for the period.
- Go to Company → Timesheet status (Tidrapportstatus).
- In the box Export hours using export template (Exportera timmar med hjälp av exportmall), choose the template PAXml.
- Choose From date and To Date. The default is last month.
- Tick Include external co-workers if external co-workers should also be in the file. By default, only internal co-workers are included.
- Click Create export file (Skapa exportfil). The file is downloaded, named
{company}_PAXml_{date}.xml.
- All hours in the period. The file contains all hours and absences in the period, approved or not. Approve and lock the period first, if that is your routine.
- Export as often as you like. The export doesn't change the hours. Project Flow only records the date in the Latest export column for each co-worker.
- One row per registration. Hours aren't added together. Each time registration, absence and day of hour balance is its own row, with its own ID.
- Registered hours. The hours in the file are the registered hours, not the billable hours.
- Co-workers who have left are included up to their last day.
- Limit: one export can hold up to 50,000 records. For more, choose a shorter period.
Errors
| Message | What to do |
|---|---|
| "The … pay type code is invalid for use with PAXml integration. Use one of the following valid codes: …" | Change the code on the overtime category, absence type, compensation type or co-worker setting to one of the listed codes. |
| "Validation error: …" | The file didn't pass the PAXml schema. Check project and department numbers (at most 10 characters) and the organization number (at most 12 characters). Contact Project Flow support with the message if you can't find the cause. |
| "Too much data. Please select less than … records for a single export." | Choose a shorter period. |
Q&A
Q: A co-worker is missing from the file.
A: Check three things:
- The co-worker has an External employee number.
- For external co-workers, Include external co-workers is ticked.
- The co-worker matches the compensation type filter, if you use one.
Q: Overtime or absence is missing from the file.
A: Check that the overtime category or absence type has an External pay type code, and that Export overtime or Export absence is ticked in the integration.
Q: Overtime ends up in the comp time balance instead of the flex balance.
A: The wage system follows the code. Change the overtime category's code, for example from ÖK1 to FLX.
Q: Hours that aren't approved are in the file.
A: The export includes all hours in the period. Approve the period before you create the file, or choose a period that has been approved.
Q: The hours in the file are different from the billable hours.
A: The file uses the registered hours, which is what payroll needs.
Q: Can I make my own PAXml template?
A: No. Use the built-in template PAXml, and choose what to include in the integration.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article