XER Slim and Version
Two fixes for a Primavera P6 export, in one drop: shrink a file that has grown to hundreds of megabytes, and change the P6 version on its header so an older P6 accepts it. Everything that carries the schedule stays byte for byte.
The POBS table goes: orphan data P6 drags along on every import and never reads, often half the file. UDF values, notebooks, past-period actuals and resource loading are optional extras.
The header says which P6 release wrote the file, and an older P6 refuses a newer number. Pick the version you need, download, import. Nothing else in the file moves.
Drop your .xer here, or
Resize it, change its P6 version, or both. Done in about a second, even at 500 MB.
The file stays on your machine, nothing is uploaded. Files of 500 MB and more are fine: the tool reads the bytes in slices and never decodes the text.
Change the P6 version the header field an older P6 checks before it imports
P6 refuses a file exported by a newer release than its own, and the first line is the only thing it checks. Set a lower number and an older P6 imports the file; the schedule underneath is unchanged. Keep as exported unless the import fails on version.
What goes, what stays tick a group to drop it, the numbers above follow
Every table in the file rows and bytes read from the file itself
| Table | What it holds | Rows | Size | Share | Fate |
|---|
ERMHDR 15.2 ...): type another number, save, and an older P6 accepts the file. POBS is a block that starts at the line %T POBS and runs to the next line starting with %T: select it, delete it, save. The catch is the size. A 300 MB export takes Notepad minutes to open, the POBS block is hundreds of thousands of lines to select, and Notepad++ or Excel can change the encoding or the line endings on save, which is when a file that imported fine starts failing on "invalid format". This page does the same two edits in about a second, on the bytes, without opening the text at all.