Skip to main content
Skip table of contents

Advanced repository actions

Data Management's advanced repository actions are utilities for directly editing a variety of repository objects and settings.

Warning! These actions can seriously damage your repository if used incorrectly.

You should always back up your repository before using these utilities.

To use advanced repository actions, right-click the repository object you want to edit, and then select Advanced Repository Actions.

image-20240322-192014.png

Repository cleanup

Any time you save an object to the repository, Data Management creates a new version of that object. With heavy use, Data Management's repository may become difficult to use. The Repository cleanup action removes old and unused versions of objects.

Warning! These actions can seriously damage your repository if used incorrectly.

You should always back up your repository before using these utilities.

To clean up the repository:

  1. Right-click the repository object you want to edit, and then select Advanced Repository Actions.

  2. On the Cleanup tab, select a Repository Cleanup Action:

    • Remove all but latest versions.

    • Remove all versions before a specified date.

    • Thin the history so that no more than one version exists for a specified period.

    • Optionally, clear Purge orphaned objects to keep objects whose parent folder has been deleted.

  3. Optionally, select Preview to generate a list of potential changes.

  4. Select Start.

If you have an especially large repository database, you should also pack the database on the next restart: Right-click the repository root icon, and select Pack on next restart.

Change path references

Objects stored in the repository can use either absolute or relative paths to reference other objects, such as macros and data files. If you move or rename an object that uses absolute paths, its references will "break" unless you replace them with the new path. Objects that use relative paths to reference objects in their own folder or a subfolder can be moved or renamed without problems. See relative file paths for a more detailed discussion.

You can change all path references in a project or macro that is currently open using the Path conversion command. Use the Path references action to change path references from the repository.

Warning! These actions can seriously damage your repository if used incorrectly.

You should always back up your repository before using these utilities.

To change repository path references:

  1. Right-click the repository object you want to edit, and then select Advanced Repository Actions.

  2. Select the Path references tab.

  3. Select the desired operation: Convert absolute paths to relative paths or Convert relative paths to absolute paths.

  4. Optionally, select Convert paths outside this folder to change referenced paths that are outside the selected repository location. (Not generally recommended.)

  5. Optionally, clear All subdirectories and their contents to limit the action to the current folder.

  6. Optionally, select Projects/Macros only or Data only to limit the action to those objects.

  7. Optionally, select Preview to generate a list of potential changes.

  8. Select Start.

Path replacement

Path search and replace is useful for changing absolute path references that are embedded within projects or macros. If the referenced objects are located in the same folder as the project or macro (or in subfolders) you may prefer changing the path references to relative references.

Warning! These actions can seriously damage your repository if used incorrectly.

You should always back up your repository before using these utilities.

To replace paths

  1. Right-click the repository object you want to edit, and then select Advanced Repository Actions.

  2. Select the Path replacement tab.

  3. Specify the paths to Search for and Replace with.

  4. In the Application section, specify which paths to replace:

    • Clear All subdirectories and their contents to limit the action to the current folder.

    • Clear Replace paths to Projects/Macros/Automations to retain existing paths to those objects.

    • Clear Replace paths to data to retain existing paths to data objects.

    • Clear Replace all other paths to retain existing paths in project tools and automation steps.

  5. Optionally, select Preview to generate a list of potential changes.

  6. Select Start.

Rollback version

The repository's version control feature keeps track of object timestamps and revision histories and lets you use previous versions of objects. Use the Rollback action to return the entire repository or a selected subdirectory back to a specific date or label. All changes to repository objects since the specified date are reversed.

Warning! These actions can seriously damage your repository if used incorrectly.

You should always back up your repository before using these utilities.

To rollback the repository:

  1. Right-click the repository object you want to edit, and then select Advanced Repository Actions.

  2. Select the Rollback tab.

  3. Specify the desired rollback version as a Specific date or Repository label.

  4. Tune rollback behavior by selecting or clearing Delete new objects, Restore deleted objects, Restore older versions options.

  5. Optionally, clear All subdirectories and their contents to limit the action to the current folder.

  6. Optionally, select Preview to generate a list of potential changes.

  7. Select Start.

Migrate data connections

The Connection migration action searches repository objects for RDBMS tools configured to use discrete database connections and converts these to data connections.

Warning! These actions can seriously damage your repository if used incorrectly.

You should always back up your repository before using these utilities.

To convert RDBMS connections to data connections:

  1. Right-click the repository object you want to edit, and then select Advanced Repository Actions.

  2. Select the Connection migration tab.

  3. Configure options for identifying unique Data Connections:

    • Select Ignore non-standard parameters to ignore the connection parameters that are not defined in the Provider template of an RDBMS tool.
      When you select a database strategy, the RDBMS tool loads the parameter grid with the standard parameters necessary to connect to the selected database. You can enter additional connection parameters; these are simply passed along in the connection string. If you selecting Ignore non-standard parameters, these additional parameters are ignored.

    • Select Ignore scripting options to ignore the Scripting configuration options of an RDBMS tool.

    • Select Ignore performance options to ignore the Performance configuration options of an RDBMS tool.

    • Select Ignore behavior options to ignore the Behavior configuration options of an RDBMS tool.

  4. Optionally, clear All subdirectories and their contents to limit the action to the current folder.

  5. Optionally, select Preview to generate a list of potential changes.

  6. Select Start.

Project update

If you open a project or macro created in a previous version of Data Management, it is automatically converted to the current Data Management format. Use the Project update action if you have many such projects or macros and want to convert them all at once.

Warning! These actions can seriously damage your repository if used incorrectly.

You should always back up your repository before using these utilities.

To update projects or macros to the current Data Management project format:

  1. Right-click the repository object you want to edit, and then select Advanced Repository Actions.

  2. Select the Project update tab.

  3. Optionally, clear All subdirectories and their contents to limit the action to the current folder.

  4. Optionally, select Preview to generate a list of potential changes.

  5. Select Start.

  6. If conversion errors are reported, convert the problematic projects or macros by opening them individually.

Replace data connections

The Connection Replacement action finds and changes specified data connections embedded within projects or macros.

Warning! These actions can seriously damage your repository if used incorrectly.

You should always back up your repository before using these utilities.

To replace data connections:

  1. Right-click the repository object you want to edit, and then select Advanced Repository Actions.

  2. Select the Connection replacement tab.

  3. Select the data connections to Search for and Replace with.

  4. Optionally, clear All subdirectories and their contents to limit the action to the current folder.

  5. Optionally, select Preview to generate a list of potential changes.

  6. Select Start.

Replace configuration settings

Data Management uses a nested XML format to represent project, macro, tool, and connection configurations. You can view a project or macro's configuration using the Configuration Locator.  If you are familiar with the Data Management XML conventions, you can use the General replace tab to find and replace configuration settings in configured projects and macros.

Warning! These actions can seriously damage your repository if used incorrectly.

You should always back up your repository before using these utilities.

To replace configuration settings:

  1. Right-click the repository object you want to edit, and then select Advanced Repository Actions.

  2. Select the General replace tab.

  3. Enter the Locator that you want to edit.

  4. Enter the value to Search for.

  5. Enter the value to Replace with.

  6. Optionally, clear All subdirectories and their contents to limit the action to the current folder.

  7. Optionally, select Preview to generate a list of potential changes.

Update encrypted items

See Update secrets stored in the repository and Key rotation for a discussion of the Security update feature.

Manage repository size

The repository database is a file located at <install-folder>/repository/repository.s3db. As new object versions and logs are added over time, this file can grow quite large, affecting Data Management's performance. The following strategies can prevent your repository from becoming too big.

Automatic log aging

To keep logs from growing without bound, you can choose to archive or delete them after a defined period of time.

To configure log aging:

  1. Open the Settings folder  in the repository, select Site, and then go to the Properties pane.

  2. Set the Log maintenance options to either Delete or Archive logs older than a defined time. If you choose to archive logs, you must also specify a log-archive folder.

  3. Optionally, you can edit Max log count to set an upper limit on the

Purging older repository versions

Over time, your repository can accumulate many older versions of macros, projects, and data. If you are absolutely certain that you no longer want older versions, follow these instructions for purging older versions. We strongly recommend that you make a full backup of the Data Management installation folder with Data Management services stopped before purging the repository.

Packing the repository database

Even after you've purged the repository or logs, the physical size of the file <install-folder>/repository/repository.s3db will not shrink until it is packed.

To schedule packing on the next restart of the site service, right-click the repository root icon, and then select Pack on next restart.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.