Skip to main content
Version: TeamForge 24.0

doc_update_fieldvalues.py

If you have been using Single-select, Multi-select or Status flex fields in TeamForge Documents—and if you have inadvertently deleted one of the flex field values that was being used widely by existing documents—you will end up being unable to access the documents/document folders due to data discrepancy issues.

While TeamForge 20.1 has been fixed to prevent such deletions, you can run this script to fix such data discrepancy issues, if any, found with documents created in TeamForge 20.0 (or earlier).

Usage

[RUNTIME_DIR]/scripts/doc_update_fieldvalues.py [--run|-r] | [--projectId|-p] | [--help|-h]

Parameters

The following parameters are available for the doc_update_fieldvalues.py script.

ParameterDescription
-r | --runUpdates all the documents across all the projects. The more the number of documents you have, the longer it takes to complete.
-p | --projectIdUpdates all the documents in a given project.
-h | --helpProvides a list of all available options for this script.