Any completed local pack can be rolled back. Rollback will restore the versions of all the records in this local pack as they were before the start of the update collection, in other words, before starting works on this local pack. Deleted records will be restored, and created records will be deleted.

After the rollback is completed, the imported versions stay in the system as non-current VCS records. You can restore these record versions manually if needed.

Example

  • A configuration pack contains a record version X.
  • Before import, the target instance had version Y.
  • After the local pack is imported, the record version changed to X.
  • When you rollback the local pack, the Y version of the record will be restored.

Rollback a local pack


To rollback a local pack, please complete the steps below:

  1. Navigate to Configuration → Local Pack.
  2. Open the local pack you need to rollback.
  3. Click Rollback preview to check system's response to record restoration.
  4. In the Related Lists area, open the VCS Preview Log tab.
  5. Filter out records in the Allowed state and process possible collisions if there are any.
  6. Click Rollback to restore records to the previous version.

Here is the expected result of the process:

Import result

Rollback result

A new tableThe table is dropped from the database, deleting any data from it.
A new fieldThe field is dropped from the database, deleting any data from it.
A deleted fieldThe field is restored to the database, but the original data is lost.
A record is insertedThe record is deleted.
A record is deletedThe record is restored with its original data.
A record is updatedThe record is restored with its original data.

Collision processing 


General process of solving the rollback collisions is the following:

  1. In the configuration pack to be rollbacked, click Rollback preview.
  2. Scroll down to the Related Lists area and open the VCS Preview Log tab.
  3. Filter out records in the Allowed state using the Condition Builder.
  4. Open one of the records.
  5. Read the text in the Message field to find the error cause.
  6. Make necessary changes.

  7. Click Save or Save and Exit to apply changes.
  8. Return to the configuration pack record and click Rollback preview.
  9. Make sure that the VCS Preview Log record state changed to Good.
  10. Repeat these steps until all necessary records in the VCS Preview Log are in the Good state.
  11. Click Rollback.

Collision cases 


Collision case 1

When rolling back a local pack, the state of the record is Collision. The Message field contains the following text:

The current version for this target entry is in a different local package. https://{your-instance.ru}/record/sys_vcs_record/123455521418546721

Collision solving:

Move the current record to the local pack, which you need to rollback, and click Rollback preview.

Collision case 2

When rolling back a local pack, the state of the record is Collision. The Message field contains the following text:

Current record does not exist!

Collision solving:

Continue the rollback. The collision record will be skipped.

Collision case 3

When rolling back a local pack, the state of the record is Collision. The Message field contains the following text:

Previous version for current is not found

Collision solving:

Continue the rollback. The collision record will be skipped.

Collision case 4

The configuration pack inserted new columns into a table. When rolling back a local pack, a record is in the Warning state. The Message field contains the following text:

undefined column SQLERROR 42703

Collision solving:

Continue the rollback. Сolumns inserted during import will be deleted.

Collision case 5

A local pack contains an Insert record: a new table was created. Rollback will cause the deletion of this table, but it contains one or more records. The state of the record is Skipped. The Message field contains the following text:

Table is not empty

Collision solving:

Open the list of records of the table and delete all records manually.

You can find other examples of possible collisions in the Collisions processing article. After that, click Rollback preview.

  • No labels