Adding or Removing the Minor Revision ID

You can change the revision format of existing objects. This removes the minor revision ID of objects if you do not use minor revisions, or adds a minor revision ID to an object if you do not use the secondary revision ID.

For more information, see About Engineering Content Policy Migration.


Before you begin: Make sure that no one is working on the objects to be migrated, including in offline sessions. This includes: modifying the object, using the object, loading the object, or saving the object.

If so, saving their changes after the migration fails.

Environment: On premises only

  1. Start MQL.

    For more information, see Installation and Setup | 3DEXPERIENCE Platform | 3DEXPERIENCE Configuration and Customization | Legacy Tools | MQL Concepts | MQL Concepts | Introducing MQL | Running MQL.

  2. Optional: To list the object types that can be migrated, run this command:print type PLMReference select derivative;
  3. To log in, run this command: set context user creator password XXX;
  4. To start the migration, run this command: exec program MinMajPLMReferenceMigration <physical_id> -major|minor [-no_searching_index]

    Where:

    Option Mandatory Description
    physical_id Yes The physical ID of one of the object's revisions in the branch that you want to migrate.
    -major|minor Yes The target Engineering content policy:
    • -major: Migrates the revisions from Classic policies (allowing minor revisions) to non-Classic policies (allowing major revisions only).

      The minor revision ID is removed.

    • -minor: Migrates the revisions from the non-Classic policies (allowing major revisions only) to the Classic policies.

      The minor revision ID is added, and replaces the secondary revision ID (if any).

    -no_searching_index No

    Does not index the migrated objects.

    Recommendation: use this option if you need to migrate several branches of one or several objects at the same time. This avoids waiting for indexation of the migrated object between each migration.

    The list of migrated objects to be indexed is stored in a specific set. You can then index them manually when all your migrations are done. For more information, see Step 5.

  5. If you used the -no_searching_index option, do the following:
    1. To index the migrated objects, run this command: update searchindex set Set_INTERNALDS_BaselineMinMajMigr_;
    2. When the indexation is completed, to delete the set, run this command: delete set Set_INTERNALDS_BaselineMinMajMigr_;

    Note: If you do not use the -no_searching_index option, the migrated objects are indexed automatically.