About Preparing a Batch Load File

Managing System Processes 3-23

3.6.1.7 Custom Metadata Fields

Any custom metadata field that has been defined in the Configuration Manager can be included in a file record. ■ If you have defined any custom metadata fields as required fields, those fields must be defined for an insert action or an update action. ■ If a custom metadata field is not a required field, but it has a default value even if blank, then the default value will be used if the value is not specified in the batch load file. ■ When specifying a custom metadata field value, the field name preceded with an x . For example, if you have a custom metadata field called Location, then the batch load file entry will be xLocation=value. ■ Keep in mind that some add-on products use custom metadata fields. For example, if you have PDF Watermark, you will have created a field called Watermark. To include this field in a batch load file, precede it with an x just like any other custom metadata field that is, xWatermark.

3.6.2 Preparing a Batch Load File

This section covers these topics: ■ Section 3.6.2.1, About Preparing a Batch Load File ■ Section 3.6.2.2, Mapping Files ■ Section 3.6.2.3, Creating a Batch Load File from the BatchBuilder Screen ■ Section 3.6.2.4, Creating a Mapping File ■ Section 3.6.2.5, Creating a Batch Load File from the Command Line

3.6.2.1 About Preparing a Batch Load File

You can use any method you prefer to create a batch load file, if the resulting text file conforms to the batch load file syntax requirements. However, the Batch Loader provides a tool called the BatchBuilder to assist you in creating batch load files. ■ The BatchBuilder creates a batch load file based on the files in a specified directory. The BatchBuilder reads recursively through all the sub-directories to create the batch load file. ■ A mapping file tells the BatchBuilder how to determine the metadata for each file record. You can use the BatchBuilder to create and save custom Mapping Files . ■ You can run the BatchBuilder from the standalone application interface or from the command line. alternateOverrideFormat Specifies which file format to use for the Alternate File. This file format overrides the one specified by the file extension of the file. This option will only work as a parameter if you enable the IsOverrideFormat configuration variable. You can set this variable by selecting the Allow Override Format in the System Properties application. However, a better and recommended alternative would be to use the alternate File:format parameter. SetFileDir Specifies the directory where the Primary Files and Alternate Files are located. This field is carried over to the next file record. Optional Parameters Definition 3-24 Oracle Fusion Middleware System Administrators Guide for Oracle Content Server ■ The BatchBuilder can also be used to create external collections of content, which are indexed and stored in a separate search collection rather than in the Oracle Content Server database. You can set up read-only external collections, where users can search for content but cannot update metadata or delete content. This option is recommended when external content is also included in another Oracle Content Server instance.

3.6.2.2 Mapping Files