What is an XER file? How to open one without Primavera P6

    Someone has sent you a programme as an XER file and you don't have Primavera P6. Here is what the file is, what is inside it, and how to read it or put it to work.

    What is an XER file?

    An XER file is the export format of Oracle Primavera P6, the scheduling software most large construction programmes are built in. When a planner exports a project from P6, the default format is XER. Main contractors send XER files to subcontractors, clients ask for them at each programme update, and claims consultants use them to rebuild what the plan said at a given date.

    One XER file can hold one project or several, with everything P6 needs to rebuild them: the WBS, the activities and their dates, the logic links between them, calendars, resources, activity codes and user-defined fields. It is a complete programme, not a picture of one, which is why it is the format planners prefer to exchange.

    XER file type and format: what is inside

    The XER file type is plain text, not a binary database. Open one in a text editor and you will see a header line beginning ERMHDR, which names the P6 version that wrote it and the export date, followed by a series of tables, one after another. Each table is written the same way:

    • %T followed by the table name, for example TASK.
    • %F followed by the field names, separated by tabs.
    • %R rows, one per record, with the values separated by tabs.
    • %E at the very end of the file.
    Tables you will find in most XER files
    TableWhat it holds
    PROJECTThe project, its data date and its settings
    PROJWBSThe work breakdown structure
    TASKThe activities: names, durations, planned and actual dates, status
    TASKPREDThe relationships between activities, with lags
    CALENDARWorking days, hours and holidays
    RSRC and TASKRSRCResources and their assignments to activities
    ACTVTYPE and ACTVCODEActivity codes, such as area, trade or phase

    Because it is text, an XER file compresses well and opens anywhere. Because the tables refer to each other by internal ids, it is hard to read by eye: an activity in TASK points at its WBS node by a number, not by a name.

    How to open an XER file without Primavera P6

    P6 licences are expensive, and most people who receive an XER file only need to read it or work from it. These are the options, from the quickest to the most useful.

    1. Read it as text. Any text editor opens an XER file. It is fine for checking the version line, a project name or whether an activity exists, and hard going for anything more.
    2. Open it in Excel. The values are tab-separated, so Excel will split them into columns. The tables are stacked in one long sheet, so filter on the %T lines to find each one. If names show odd characters, re-open the file and pick a Windows (ANSI) or UTF-8 encoding in the import step.
    3. Ask the planner for a readable export. P6 prints a Gantt chart to PDF and exports to a spreadsheet. For reading, a PDF is often all you need. For working in another scheduling tool, ask for a format that tool reads.
    4. Use a schedule viewer. Several free and paid viewers open XER files and show the Gantt chart, the WBS and the logic. Check where an online viewer sends your file before you upload a client's programme.
    5. Import it into the tool you track progress in. If you want the programme so you can report progress against it, import the XER file itself rather than a copy of it.

    Which P6 version wrote it?

    The ERMHDR line at the top of the file gives the version number. It matters when you send a file back: an XER file exported from a newer version of P6 may not import cleanly into an older one, so planners often agree a version for exchange at the start of a job.

    The same applies to the data date. An XER file is a snapshot of the programme at its data date. If you are comparing updates, keep each file and note its data date, rather than overwriting last month's with this month's.

    What you can't do without P6

    Reading an XER file is easy. Changing one is not. Recalculating the critical path, changing logic or durations and writing a valid XER file back out needs P6 or another full scheduling tool. Editing the text by hand breaks the links between tables in ways that are hard to see.

    For most site and commercial teams that is fine: the planner owns the programme, and everyone else needs to see it and measure progress against it.

    Track progress against an XER schedule

    Install Insights imports the XER file as it comes out of P6, with no conversion step. The WBS and the activities appear on the Schedule page, and the progress installers mark on the drawings and the 3D viewer is mapped to those activities, so percent complete by activity comes from installed work, not from a weekly estimate.

    When the planner issues an update, import the new XER file. That gives you planned dates to measure against, the planned value for earned value management, and, where the programme is planned by location, a takt plan board. Programmes from Microsoft Project come in the same way: see how to open an MPP file. The full list of capabilities is on the features page.

    Frequently asked questions

    Short answers to the questions people ask most about this topic.

    Yes. An XER file is tab-separated text, so Excel splits it into columns. All the tables sit in one sheet, one after another, so you will need to filter on the %T lines to find the table you want.

    Not directly. Ask the planner to export the project from P6 in a format Microsoft Project reads instead. Some third-party tools convert between the two, but check the logic and calendars after any conversion.

    Both are P6 export formats that carry the whole programme. XER is P6's own tab-separated format and the one most teams exchange. P6 XML (PMXML) holds the same kind of data as XML. If you are not sure which to ask for, ask for XER.

    Check what is in it first. An XER file can include resources, rates and costs as well as dates. If the recipient only needs the programme, the planner can leave cost data out of the export.

    Yes. Install Insights imports the XER file directly and maps the progress installers mark on site to its activities. You can try it on your own programme with a free trial.

    Put your XER file to work

    Book a demo to see a P6 programme imported and tracked, or start a free trial and import your own XER file.