Updating large database objects
Use this procedure to update large database objects (LOBs) for Landmark business objects. This procedure applies to persistent fields of type Text, BinaryObject, and BinaryDocument, such as resume or image files. It thus provides a means to load the LOBs into the database more quickly than using a Landmark application to load them one by one.
To update LOBs, you must perform three main steps:
- Use the /. See guidelines below. If a file reference is not provided, no
database change is made for that field. If you want to delete a LOB, you can specify a
reference to a zero-length file.
When you use the
action, you also need to specify the fields needed to locate the specific row to be updated with file references. The CSV input file must include all fields of at least one index set that does not allow duplicates. These fields will not be updated. They are only to identify the records. You can also add more non-LOBs fields to aid in identifying the records to update. Only LOB fields will be updated.
action in order to
create a template of a CSV file for a single business class. This CSV file will contain
the LOB fields with no values. You then populate this CSV file with references to file
locations relative to the FTP directory. Any path delimiters must be forward slashes
- Use the action and the option in order to check if it can both locate the record in which to load the LOBs and locate the binary files based on the file references.
- Use the MimeType and DocumentTitle type fields will be implicitly updated if they exist just as they would if you were to import the LOB through the application. Any errors will be written to an error zip file that contains CSV files with the problem records. action in order to load the LOBs into the database. A LOB's associated
Guidelines:
- The input files must be in CSV (comma-separated-value) format.
- The input files must have headers.
- Input files must include the file references for the LOBs and all the fields of a unique
index that does allow duplicates.
The path of each file reference must start with the expression, %ROOTPATH%/. This expression refers to the root path on your FTP server where the Landmark Administration Console will obtain the item.
- Any path delimiters must be forward slashes /.