You can import files in three modes: Create, Update, and Merge. The mode can be set once per load file and should be the first active statement in the load file.
-
Create mode creates new objects. If any data collisions are detected and an error occurs, you are informed that the object is not loaded.
-
Update mode updates existing objects. If any objects to be updated are not found and an error occurs, you are informed that the object is not loaded.
-
Merge mode updates an existing object or creates the object if it does not already exist.
The following are example syntaxes:
NLF format
Method|Create
Method|Update
Method|Merge
XML format
Type='Create' specifies that only new objects are created. If they exist, an error is raised and the transaction is rolled back. |
<Container CompSchema='SPFComponent' config='PlantA' Type = 'Create'> |
Type='Update' specifies that this container can only update existing objects. If any objects to be updated are not found, an error is raised and the transaction is rolled back. |
<Container CompSchema='SPFComponent' config='PlantA' Type = 'Update'> |
If you do not specify a type, the 'Merge' mode is assumed. If an object exists, update it. If the object does not exist, create it. |
<Container CompSchema='SPFComponent' config='PlantA' > |