QAID # 640 Published
Question / Problem:
When importing a Batch Class, what are my options for dealing with existing Batch Classes of the same name?
Answer / Solution:
When you import a CAB (.cab) file, after the CAB is unpacked, you will be prompted with the Import window, where you select the desired Batch Class(es) from a list of the Batch Classes found in the CAB file.
There are three Transfer Mode options, indicating the three options for dealing with duplicate Batch Class names, Document Class names, Profile names, etc. The options are "Do not import duplicates", "Save duplicates to new name" and "Replace duplicates with items imported".
"Do not import duplicates" simply aborts the import of any duplicate-named objects.
"Save duplicates to new name" will, in the event of a duplicate object name, append a number to the end of the object name. For example, if you have a Batch Class named "MyBatch" and attempt to import a Batch Class named "MyBatch", the imported Batch Class will appear with the name "MyBatch1". Note that the same will be done with Document Classes, Form Types, Profiles, etc.
"Replace duplicates with items imported" will overwrite the existing duplicate-named object with the imported one. For example, if you have a Batch Class named "MyBatch" and attempt to import a Batch Class named "MyBatch", the imported Batch Class will replace the existing one, including any duplicate- named Document Classes, Form Types, Profiles, etc.
Note: If the existing copy of MyBatch contains objects not found in the new version, the additional objects will remain in the Batch Class after the import — the additional objects will not be deleted.