Has your question already been answered?

Get a quicker response; before you post, why not search to see if it has already been answered

Ways of importing numerous XER files

4 replies [Last post]
Konstantinos Papa...
User offline. Last seen 27 weeks 9 hours ago. Offline
Joined: 5 Dec 2017
Posts: 2
Groups: None

Dear Professionals,

Is there a way of importing numerous XER files in P6 rather than importing one by one?

Replies

Tom Boyle
User offline. Last seen 1 hour 10 min ago. Offline
Joined: 28 Nov 2006
Posts: 206
Groups: None

Bookmarking Zoltan's procedure.

Zoltan Palffy
User offline. Last seen 4 hours 17 min ago. Offline
Joined: 13 Jul 2009
Posts: 1976

you can use the windows command line to import xer file this is hiow

To use the Windows command line interface to import an XER file  the following:

 

  • Make a copy or edit the actions.xml file to specify the EPS you want to import the project to, the layout you want to use, and the XER file you want to import from.

 

You can specify more than one import action in a single file, by including multiple <action> nodes.

The following is a sample actions.xml file that illustrates importing 2 XER files from the same script. All tags must appear in the file; however, you can leave some tags empty, as noted below. Values in bold are literal values you must enter as is. Values in italics are samples that will vary with your configuration.

<actions>

<action>

       <type>import</type>

<importFormat>XER</importFormat>

<importType>PROJECT</importType>

<importAction>CREATE</importAction>

<importTo>EPS1</importTo>

<importConfiguration>MyConfig1</importConfiguration>

<importFile>c:\somefile1.xer</importFile>

       </action>

<action>

       <type>import</type>

<importFormat>XER</importFormat>

<importType>PROJECT</importType>

<importAction>CREATE</importAction>

<importTo>EPS2</importTo>

<importConfiguration>MyConfig2</importConfiguration>

<importFile>c:\somefile2.xer</importFile>

       </action>

</actions>

  • Close the PM module if it is running.
  • From the Windows command line, or a batch file, or from code, you can issue a command in the following form from the folder where PM.EXE is located:

 

PM.EXE /username=<name> [/password=<name>] [/alias=<name>] /actionScript=<path> [/logfile=<path>]

 

for example it would look like this 

PM.EXE /username=admin /password=admin /alias=PMDB /actionScript=c:\somefolder\importprojects.xml /logfile:c:\somefolder\myLog.txt

If any values include spaces, enclose the value in double quotes (""). For example:

PM.EXE /username=admin /password=admin /alias=PMDB /actionScript="c:\some folder\importprojects.xml" /logfile="c:\some folder\myLog.txt"

Processing results are written to the log file, or you can echo them to the command line interface

Julian Nunez
User offline. Last seen 43 weeks 2 days ago. Offline
Joined: 12 Dec 2017
Posts: 2
Groups: None

The only way I think this is possible, is if the XER you are importing contains multiple projects.

i.e. if you open 12 projects at once in P6, it will let you export all of them in to a single XER.  Good luck.

Zoltan Palffy
User offline. Last seen 4 hours 17 min ago. Offline
Joined: 13 Jul 2009
Posts: 1976

what format are they to begin with  ? one large file or multiple individual files ?