JSON export and import
With the JSON export you transfer the values of a comparison run to another company or environment – even if there is no connection between them. On import, Configuration Compare compares the values of the file with the current company. You review the differences and apply them selectively.
Export
- Open the comparison run in Configuration Compare Runs or its results.
- Choose Export to JSON.
- In the JSON Transfer dialog, specify:
- Export values from: Source or Target. The file describes the state of this side. A company that imports the file is aligned with this state.
- Include masked values: Without this option the file contains no values of masked fields. With the option they are encrypted with a password.
- Password and Confirm password: at least 8 characters. The password is needed again for the import.
- The file
configuration-compare-<run>-<side>.jsonis downloaded.
The file contains only the differences of the run:
| Difference in the run | Content of the file when exporting Source |
|---|---|
| Different | The value of the field |
| Missing in target | The complete record to be created, without fields with Exclude |
| Additional in target | Only the primary key – the record is to be deleted |
When exporting Target, this applies the other way round.
Fields with the Exclude field rule are never included in the file. The only exception are the primary key fields of completely exported records, without which the record could not be created. Fields with Mask are left out or encrypted.
Masked values are encrypted with AES-256; the key is derived from your password. The password itself is not stored in the file. Pass it on separately from the file.
An imported run cannot be exported again. Export the original run instead.
Import
- In the target company, open Configuration Compare Runs and choose Import from JSON.
- Select the file.
- If the file contains encrypted values, enter the Password. If you leave it empty, masked values are skipped.
- Configuration Compare creates a new run with Imported = Yes and shows the differences between the file and the current company.
The import itself does not change any data. Only Apply selected writes the values from the file:
| Difference Type | Effect of Apply selected |
|---|---|
| Different | The field value from the file is set. |
| Missing in target | The record from the file is created. |
| Additional in target | The record is deleted. An additional confirmation is shown first. |
Fields configured with Exclude in the current profile are neither set nor copied when a record is created.
Import errors
Records that cannot be matched appear as Error with a reason, for example:
- The table or field does not exist in this environment.
- The primary key in the file does not match the table.
- The record does not exist in this company, but the file only contains changed field values.
- A value cannot be converted to the data type of the field.
Files from older app versions with an unsupported format are rejected with a message. In that case, export the run again.
