Upgrade to Document Intelligence 3.0 or later from version 2.4 or earlier
Summarize
Summary of Upgrade to Document Intelligence 3.0 or Later from Version 2.4 or Earlier
Document Intelligence 3.0 introduces an updated database schema, transitioning from a scoped application to a ServiceNow AI Platform plugin. It's essential to note that starting with the Zurich release, Document Intelligence will be hidden in new instances but will still be supported. For document information extraction, users are encouraged to use the Now Assist in Document Intelligence application.
Show less
Before the Upgrade
- Schedule the Upgrade: Avoid upgrades during nightly task definitions to prevent interruptions.
- Update Custom Code: Refactor any custom code referencing old DocIntel tables (di) to utilize the new platform tables (sysdi) using updated flow actions.
- Add Cross-Scope Records: Ensure cross-scope records for the new DocIntel tables are in place without removing old records.
During the Upgrade
- Avoid Document Extraction: Do not use the Document Intelligence workspace until migration to the new table (sysditask) is completed to prevent potential data loss.
After the Upgrade
- Test Integrations and Workflows: Validate that all use case integrations and custom workflows operate correctly with the new schema.
- Check for Data Loss: Be cautious of potential data loss during the migration process, especially concerning attachments and tasks created during the upgrade.
- Migrate Legacy Use Cases: Post-upgrade, you can rerun the migration batch script for any legacy use cases requiring migration to platform tables.
Cross-Scope Records
Ensure to establish appropriate cross-scope records for the new system, allowing integration with the latest database schema. This includes several target records for reading tables that are crucial for operational integrity.
Document Intelligence 3.0 or later includes an updated database schema to support its transition from a scoped application to a ServiceNow AI Platform plugin.
Upgrade tasks
Review the information in this topic before you upgrade to Document Intelligence (DocIntel) 3.0 or later from version 2.4 or earlier.
For more information on installation, see Install Document Intelligence.
Before the upgrade
| Pre-upgrade task | Description |
|---|---|
| Choose a time to schedule the upgrade |
Avoid performing the upgrade during the run time of the nightly task definition (use case) upgrade job. Upgrading the application at that time would prevent use cases from upgrading until the run time of the next day. |
| Update any custom code that points directly to DocIntel database tables |
After upgrading to Document Intelligence 3.0 or later from version 2.4 or earlier, DocIntel will use new flow actions. DocIntel will also use ServiceNow AI Platform database tables (sys_di_) in place of the scoped application tables (di_). All DocIntel data will be migrated automatically to these platform tables. Note:
Document extraction use cases may not be available for use until the migration is complete. If you have custom code in your instance that points directly to the scoped application tables (di_), it should be updated, preferably to the platform component using DocIntel APIs. If you have custom code using DocIntel 2.4 or earlier flow actions, it should be updated to use 3.0 or later flow actions. For the list of tables, see Components installed with Document Intelligence. |
| Add cross-scope records for integrations |
For any integrations with Document Intelligence, add cross-scope records for the new DocIntel database tables. Note:
Ensure that the existing cross-scope records for the old tables are not removed. See the Cross-scope records section for the list of records to be added. For more detail on cross-scope records, see Cross-scope privilege record. |
During the upgrade
| Upgrade task | Description |
|---|---|
| Avoid using the Document Intelligence workspace to extract fields |
Wait until a document task is migrated to the sys_di_task table before completing it using the Document Intelligence workspace. Completing a task during the upgrade may lead to data loss. |
After the upgrade
| Post-upgrade task | Description |
|---|---|
| Test DocIntel integrations and custom workflows |
Test your use case integrations to ensure they function with the new database schema. |
| Check for data loss |
Some cases where you can lose data include:
|
| Post-upgrade migration of legacy use cases imported through update sets |
At any time after the completion of the Document Intelligence 3.0 or later upgrade and data migration, you can rerun the migration batch script that ran during the upgrade. You may want to run this script if you must migrate any imported use cases requiring migration to the platform tables (sys_di_).
Warning:
Never use the DocIntel migrate remaining data batch job to rerun migration after deleting all records from sys_di tables. You should only use it to migrate missing data from di_ tables
to sys_di tables. |
Cross-scope records
| Source scope | Target scope | Target name | Operation | Target type | Status |
|---|---|---|---|---|---|
| Scope of integrating BU | global | sys_di_task | Read | Table | Allowed |
| Scope of integrating BU | global | sys_di_key | Read | Table | Allowed |
| Scope of integrating BU | global | sys_di_key_group | Read | Table | Allowed |
| Scope of integrating BU | global | sys_di_ocr_input | Read | Table | Allowed |
| Scope of integrating BU | global | sys_di_pdf_input | Read | Table | Allowed |
| Scope of integrating BU | global | sys_di_prediction_input | Read | Table | Allowed |
| Scope of integrating BU | global | sys_di_training_input | Read | Table | Allowed |
| Scope of integrating BU | global | sys_di_key_hint | Read | Table | Allowed |