Reprocess agreements to refine extracted data
After you make updates to agreement or field definitions, you can reprocess to apply your updated configuration to agreements in the Agreement Manager repository.
Reprocessing reruns agreement type classification and data extraction on agreements that have already been ingested into Agreement Manager. Use the Docusign CLI reprocess command to improve extraction accuracy after you:
- Modify custom or standard agreement type definitions or change field definitions in your Agreement Manager configuration
- Test the configuration changes
- Deploy your updated configuration package to Docusign
See Common reprocessing scenarios for examples of configuration changes that should prompt you to reprocess previously ingested agreements.
Reprocess command
Command syntax
ds agm reprocess [options]
Command options
When deciding whether to reprocess by agreement type or by field, choose the option that requires the shorter list in your command argument:
- Reprocess by field when you add or update a small number of fields that apply to many agreement types. You supply only the field names rather than listing every affected type.
- Reprocess by agreement type when you add or update many fields that apply to a small number of agreement types. You supply only the type names rather than listing every field.
These rules apply to the command options:
- You must include either the
--agreement-typesoption or the--fieldsoption in areprocesscommand, but you cannot include both. - You must include the
--custom-dataoption, the--standard-dataoption, or both in areprocesscommand.
Reprocess by agreement type
When you reprocess by agreement type, Docusign does the following for all agreements of the specified types:
-
If agreement type definitions have changed or training documents have been updated, Docusign reclassifies agreements as a different type where applicable.
-
Extracts field data as follows:
- For a new field, Docusign extracts data for that field in each agreement.
- For an updated field definition, Docusign re-extracts data for that field from each agreement based on the updated information in your manifest.
Example command
ds agm reprocess --agreement-types "Agreement Type 1, Agreement Type 2, Agreement Type 3" --custom-data --standard-data
The agreement types are specified using their displayName values. You can retrieve displayName values using the get catalog command.
Reprocess by field
When you reprocess by field, Docusign checks to see which agreement types contain the specified fields. For all agreements of those types, Docusign does the following:
-
If agreement type definitions have changed or training documents have been updated, Docusign reclassifies agreements as a different type where applicable.
-
Extracts field data as follows:
- For a new field, Docusign extracts data for that field in each agreement.
- For an updated field definition, Docusign re-extracts data for that field from each agreement based on the updated information in your manifest.
Example command
ds agm reprocess --fields "Field 1, Field 2, Field 3" --custom-data
The fields are specified using their displayName values. You can retrieve displayName values using the get catalog command.
Common reprocessing scenarios
This table summarizes common reprocessing scenarios and lists the command options to use in each case.
Reprocessing behaviors and limits
When you enter a reprocess command, the CLI confirms the number of agreements that will be reprocessed based on the command options. It will then prompt you to either proceed with the reprocess or cancel it.
A maximum of 100,000 agreements can be processed with a single reprocess command. If you run a command that would reprocess more than 100,000 agreements, the CLI displays a warning and will not continue with the reprocess. Enter a new reprocess command with different options to reduce the number of agreements.
A successful reprocess command initiates an agreement processing job in Agreement Manager. See Job Monitoring for Agreement Uploads and Processing for details about how to view the job status.
The duration of a processing job depends on the number of agreements. See the Job size considerations section in Agreement Manager Reprocessing Experience for information.
Error messages
If a reprocess command fails, see Reprocessing errors for information about error causes and resolutions.
Frequently asked questions
How do I reprocess agreements after updating field definitions?
Run the ds agm reprocess command with either the --fields option (specifying the updated fields) or the --agreement-types option (specifying the agreement types that contain those fields). Choose the option that requires the shorter list in your command argument. Include --custom-data, --standard-data, or both depending on whether the updated fields are custom or standard.
What happens to existing agreement data when I reprocess?
Docusign reclassifies agreements under a different agreement type where applicable, based on updated type definitions or training documents. For new fields, Docusign extracts data for that field from each agreement. For updated field definitions, Docusign re-extracts data based on the updated information in your manifest.
Can I reprocess by both agreement type and field at the same time?
No. The --agreement-types and --fields options are mutually exclusive. You must include one or the other in a reprocess command, but not both. Choose the option that minimizes the size of the list you need to supply.
What is the maximum number of agreements I can reprocess?
If the number of agreements that would be reprocessed exceeds 100,000, the Docusign CLI displays a warning and does not continue with the reprocess. Enter a new reprocess command with different options to reduce the number of agreements.
How long does reprocessing take?
The duration of a processing job depends on the number of agreements. A successful reprocess command initiates an agreement processing job in Agreement Manager. See Job Monitoring for Agreement Uploads and Processing and the Job size considerations section in Agreement Manager Reprocessing Experience for details.
Next steps
- Explore the AI tools available to help you build and manage your Agreement Manager configuration more efficiently.
- Join the open beta to access new features early and provide feedback to the Docusign team.