PAXml (payroll export)

Modified on Thu, 5 Nov at 12:08 PM

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, SJK or Ö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):

WhereCode forExample
General co-worker settings: Default external pay type code (Standardkod för extern lönetyp)Normal hoursARB or TID
Each overtime categoryHours on that overtime categoryÖT1 (paid overtime), ÖK1 (overtime to comp time), FLX (flex)
Each absence typeThat absenceSJK (sick), SEM (vacation), VAB
General co-worker settings: Hour balance external pay type code (Extern lönetypskod för medarbetarens tidsaldo)Hour balanceFLX
Each compensation type for expenses (Extern lönetypskod)ExpensesUTLÄ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–ÖK5 go to the comp time balance (kompsaldo), and FLX to 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

  1. Go to Setup → Settings → Integrations (Inställningar → Integrationer) and switch to the tab Export to file (Exportera till fil). You need administrator access.
  2. Click + Create integration and choose PAXml.
  3. 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 / ExporttypTime 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 timmarNormal hours, with the default code
Export overtime / Exportera övertidHours on overtime categories, with each category's code
Export absence / Exportera frånvaroAbsence, with each absence type's code
Export hour balanceOne 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äggApproved travel and expense claims, with each compensation type's code. Only with an export type that includes salary data.
Include schedules / Inkludera schemaEach co-worker's scheduled hours per day
Include co-workers / Inkludera medarbetareName 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, TID and FLX are selected by default.



Create the file

  1. Make sure everyone has registered their hours and absence for the period.
  2. Go to Company → Timesheet status (Tidrapportstatus).
  3. In the box Export hours using export template (Exportera timmar med hjälp av exportmall), choose the template PAXml.
  4. Choose From date and To Date. The default is last month.
  5. Tick Include external co-workers if external co-workers should also be in the file. By default, only internal co-workers are included.
  6. 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

MessageWhat 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article