import_tools command options

You can use any of the following options with the import_tools command. You must always supply the -password option.

-charset charset
Character set encoding (charset) for the files to import. If this option is null, PolicyCenter sets the default character encoding to UTF-8.
-dataset integer
Integer value (integer) representing the dataset to import from a CSV-formatted file, for example:
  • RolePrivilege,0,default_data:3,abdelete,audit_examiner
PolicyCenter orders datasets by inclusion. The number of the smallest dataset is always 0. Thus, dataset 0 is a subset of dataset 1, and dataset 1 is a subset of dataset 2, and so forth.
To import all data, set this value to -1.
-ignore_all_errors
Causes the tool to ignore any errors in a CSV-formatted input file.
-ignore_null_violations
Causes the tool to ignore violations of null constraints in a CSV-formatted input file.
-import filename1filename2, ...
Imports administrative data from one or more CSV (comma-separated values data) files or XML files.
It is possible to provide a list of file names in a separate file. To do so, create a file that contains a comma-separated list of files names. Prefix an @ character to the name of the list file, for example:
  • -import @files.lst
To convert data using the -output_csv or -output_xml options, provide only a single file name.
-output_csv filename
If used with the -import option, outputs comma-separated values to the specified file and then stops processing. PolicyCenter imports no data into the server. Use this option to convert XML input files to CSV-formatted output files.
-output_xml filename
If used with the -import option, outputs XML to the specified file and then stops processing. PolicyCenter imports no data into the server. Use this option to convert CSV input files to XML-formatted output files.
-password password
Password to use to connect to the server. PolicyCenter requires the password value.
-privileges
Adds the role privileges contained in file roleprivileges.csv in the Guidewire Studio™ modules/configuration/config/import/gen folder to those roles that already exist in the database.
-server url
Specifies the PolicyCenter host server URL. Include the port number and web application name, for example:
  • http://servername:8180/pc
-user user
User to use to run this process.