Open an MQL window and execute these commands:
set context user creator;
execute program emxLibraryCentalDocumentSchemaMigrationFindObjects <NUM> <IDSFILEPATH>;
where:
- <NUM> is the number of IDs to write in each file (default is 100)
- <IDSFILEPATH> is the directory where the temporary files should be written
For example:
execute program emxLibraryCentalDocumentSchemaMigrationFindObjects 100 'C:/Temp/ids/';
This command generates flat files that contain object IDs for all Document Library objects, all Bookshelf objects that are not connected to a Document Library, and all Book objects not connected to any Bookshelf. The commands writes 100 (or whatever <NUM> value is specified) IDs
per file in the indicated folder and names the files objectids_n.txt, where n is consecutive integers.
Execute this MQL command:
execute program emxLibraryCentalDocumentSchemaMigration <IDSFILEPATH> <START> <END> <DEBUG>;
where:
- <IDSFILEPATH> is the directory where the object ID file were written (see step 1)
- <START> is the minimum range, where 1 is the file objectids_1.txt.
- <END> is the maximum range, and n indicates all files starting from the minimum range value
- <debug> is an optional parameter that logs debug information in the migration log.
For example:
execute program emxLibraryCentalDocumentSchemaMigration 'C:/Temp/ids/' 1 n;
This command creates the new Document Library structure, with Bookshelf and Book objects converted to Document Family objects, and all Generic Documents added to a Document Family object that replaced a Book object.
Changes are committed to the database when a file is completed without any errors. If an error occurs within a file, ALL object IDs in that file are not migrated, and the migration process continues with the next file. You can rerun the command in step 2 starting with that file as the <START> and <END> values. See the unConvertedObjectIds_xx.csv file for details about any errors (see Log Files for information about this file).