Export to XER (Primavera P6)
Applies to: Pro Β· Enterprise Last updated: 27-Feb-2026
Overviewβ
Export your schedule as a Primavera P6 XER file β the industry-standard format for exchanging project data with Oracle Primavera P6 Professional and EPPM. Kazinex writes XER files compatible with P6 version 20.0 and later, covering 17 P6 data tables.

Prerequisitesβ
- Active Pro or Enterprise subscription
- At least one schedule loaded
- Export β Primavera XER (.xer) from the Export menu
XER File Formatβ
XER files use a tab-delimited text format with four record types:
| Marker | Meaning | Description |
|---|---|---|
%T | Table | Declares a new table and its columns |
%F | Field | Lists the column names for the current table |
%R | Row | A data row with tab-separated values |
%E | End | Marks the end of the file |
The first table is always ERMHDR (export header), which contains the P6 version string and export metadata.
Exported Tablesβ
Kazinex writes 17 P6 tables in the following order:
1. ERMHDR β Export Headerβ
| Field | Value |
|---|---|
| version | 20.0 |
| export_type | Single project export |
| date_format | yyyy-MM-dd |
2. CURRTYPE β Currency Typeβ
Default project currency (typically USD).
3. FINTMPL β Financial Templateβ
Financial period template.
4. OBS β Organisation Breakdown Structureβ
Organisational hierarchy nodes.
5. UDFTYPE β User Defined Field Typesβ
UDF type definitions (field name, data type, subject area).
6. UMEASURE β Units of Measureβ
Resource measurement units.
7. ROLES β Resource Rolesβ
Role definitions for resource-role assignment.
8. PROJECT β Project Recordβ
The main project record with 64+ fields including:
| Field Group | Key Fields |
|---|---|
| Identity | proj_id, proj_short_name (max 20 chars), wbs_max_sum_level |
| Dates | plan_start_date, plan_end_date, scd_end_date, last_recalc_date |
| Status | status_code, sum_data_flag |
| Settings | def_cost_per_qty_source_type, act_pct_link_flag |
9. CALENDAR β Calendarsβ
Calendar definitions including work weeks and exceptions. Each calendar record contains:
- Calendar ID, name, and type (Global, Project, Resource)
- Standard work week pattern (7 days Γ hours)
- Holiday exceptions
10. SCHEDOPTIONS β Schedule Optionsβ
CPM calculation parameters including:
- Retained logic / progress override toggle
- Total float calculation method
- Lag calendar source
- Critical activity definition
11. PROJWBS β WBS Nodesβ
Work Breakdown Structure hierarchy with 26 fields per node:
| Field Group | Key Fields |
|---|---|
| Identity | wbs_id, wbs_short_name, wbs_name |
| Hierarchy | parent_wbs_id, seq_num |
| Dates | anticip_start_date, anticip_end_date |
| Status | status_code, wbs_milestone_flag |
12. RSRC β Resourcesβ
Resource definitions with 31 fields including:
- rsrc_id, rsrc_short_name, rsrc_name
- rsrc_type (RT_Labor, RT_Mat, RT_Equip)
- max_qty_per_hr, cost_qty_type
- Parent resource for hierarchical resources
13. RSRCRATE β Resource Ratesβ
Cost rate tables for each resource.
14. TASK β Activitiesβ
Activity records with 62 fields β the largest table in the export:
| Field Group | Key Fields |
|---|---|
| Identity | task_id, task_code, task_name |
| Type | task_type (TT_Task, TT_Mile, TT_LOE, TT_WBS), phys_complete_pct |
| Dates | early_start_date, early_end_date, late_start_date, late_end_date, act_start_date, act_end_date |
| Duration | target_drtn_hr_cnt, remain_drtn_hr_cnt, total_float_hr_cnt, free_float_hr_cnt |
| Constraints | cstr_type, cstr_date, cstr_type2, cstr_date2 |
| Calendar | clndr_id |
| WBS | wbs_id |
| Status | status_code (TK_NotStart, TK_Active, TK_Complete) |
15. TASKPRED β Relationshipsβ
Predecessor relationships between activities:
| Field | Description |
|---|---|
| task_pred_id | Unique relationship ID |
| task_id | Successor activity |
| pred_task_id | Predecessor activity |
| pred_type | PR_FS, PR_SS, PR_FF, PR_SF |
| lag_hr_cnt | Lag in hours |
16. TASKRSRC β Resource Assignmentsβ
Resource assignments with 47 fields per assignment:
| Field Group | Key Fields |
|---|---|
| Identity | taskrsrc_id, task_id, rsrc_id |
| Units | target_qty, act_reg_qty, remain_qty |
| Cost | target_cost, act_reg_cost, remain_cost |
| Dates | target_start_date, target_end_date |
17. UDFVALUE β User Defined Field Valuesβ
UDF values assigned to activities, WBS nodes, or resources.
Export Processβ
- Select Export β Primavera XER (.xer) from the Export menu
- The export begins immediately with a progress indicator
- Progress stages display during generation:
- Writing project headerβ¦
- Writing calendarsβ¦
- Writing WBS structureβ¦
- Writing activitiesβ¦
- Writing relationshipsβ¦
- Writing resourcesβ¦
- Finalisingβ¦
- The browser downloads the
.xerfile automatically
File Namingβ
The exported file is named: {project_short_name}_{YYYY-MM-DD}.xer
The project short name is sanitised to 20 characters maximum, with special characters replaced by underscores.
Limitationsβ
| Limitation | Detail |
|---|---|
| Single project | Only one project per XER file (no multi-project export) |
| Calendar generation | Calendars are generated from the internal model, not round-tripped from the original import |
| Character encoding | UTF-8 output (not true CP-1252 as P6 traditionally uses); most P6 versions handle this gracefully |
| Project short name | Sanitised to 20 characters |
| Activity codes | Exported via UDFVALUE table; P6-native ACTVCODE tables are not written |
| Timephased data | Not included (use the Resources tab for time-phased views) |
Tips & Best Practicesβ
- Use XER export when sharing schedules with teams that use Primavera P6 Professional or EPPM
- Verify the exported file by re-importing into Kazinex or opening in P6
- The project short name appears as the project ID in P6 β keep it meaningful and under 20 characters
- For Microsoft Project users, use the MSPDI export instead
Related Documentationβ
- Export to MSPDI β Export for Microsoft Project
- Export to XML β Export as Oracle PMXML
- Printing β Generate PDF output
- Uploading Schedules β Import XER files into Kazinex