## Import Data

The Import Data page allows system administrators to import resource records from a text file. The resource records can be from another CWIS site or anywhere else, as long as the data is in the correct format.

The file to import must have each field separated by a tab character and end each line with a newline character. Newline characters in field values should be removed or they will interfere with the import process. The first line of the file must contain a list of tab-separated metadata field names as defined on the Metadata Field Editor page, one of which must be the Title field.

Multiple controlled names or classifications for a resource record must be on a separate line with all other fields duplicated. The only exception is for the Title field, which can be left blank. For example, a resource record with three controlled names and two classifications would have five lines associated with it.

Important considerations when importing resource records are:

- Importing a large number of resource records can take a while.
- Importing resource records with images, files, or references is not supported.
- Flag fields should use 1 for a true value and 0 for a false value.
- Both the search and recommender databases should be rebuilt once the resource records have been imported.

### Example Input

An example of the input format for the header line and two resource records follows, with some fields omitted for brevity:

    Title              Description             Classification      Release Flag        [...]        Format
    Example Record     An example resource     Help                1                   [...]        xml
    Example Record     An example resource     Help -- CWIS        1                   [...]        xml
    Example Record     An example resource     Help -- Example     1                   [...]        xml
    Another Example    Resource example        Help                0                   [...]        pdf

Exporting existing resource records from the site that will be used to import resource records can be done to get an ad hoc example of the format required.

### See Also

- Export Data