CMDB Data Manager Archive process flowSummary<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } This article is for CMDB Data Manager Archive process flow with troubleshooting tips and recent Problems Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } All releases Instructions<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Prerequisites: * Create and publish a CMDB Data Manager policy of the type "Archive". For guidance, refer to the following link: [CMDB Data Manager Policy Creation](https://www.servicenow.com/docs/bundle/xanadu-servicenow-platform/page/product/configuration-management/task/data-manager-create-policy-wrkspc.html) The following steps outline the process implemented when creating a policy to archive CIs: 1. The scheduled job "CMDB Data Manager Archive/Delete Policy Processor" will execute, review the policy, create a CMDB Data Manager task for the CIs, and set the state to "Work in Progress." 2. Subsequently, the Business rule "Trigger Subflow for CMDB DM Task" will pick up the task in "Work in Progress" and trigger the subflow. More details can be found here: [Trigger Subflow](https://<instance_name>.service-now.com/nav_to.do?uri=sys_script.do?sys_id=9e842d0d7326201026f6aa114df6a7c0) 3. The subflow "Archive Configuration Items" will initiate the archival process by creating "sys_archive_run_chunk" and mapping it to "cmdb_task_to_archive_chunk." It will also set the state to "Pending" to indicate that the archival is in progress. Further information is available here: [Archive Configuration Items](https://<instance_name>.service-now.com/now/workflow-studio/builder?builderId=subflow&sysId=5bf1cedd7313601026f6aa114df6a762&tableName=sys_hub_flow) 4. The aforementioned sub-flow will employ the Platform's archiving capability to archive CIs by creating Archive Job Execution Chunks in the "sys_archive_run_chunk" table, with each job archiving up to 1000 CIs. For more details, visit: [Archive Job Execution Chunks](https://<instance_name>.service-now.com/sys_archive_run_chunk_list.do) 5. An intermediate table, "cmdb_task_to_archive_chunk," will update the archival state to "Completed" based on the archive chunks related to the CMDB Data Manager tasks. This table is crucial as its state determines the success or failure of the CMDB Data Management Task. 6. Upon completion of the archival process, the "archive.chunk.completed" event is triggered by the system archiver. The "Process Archive Chunk Completion" script action will update the "cmdb_task_to_archive_chunk" based on the "sys_archive_run_chunk" status, thus providing the final update on whether the archiving was successful. Refer to the following link for more information: [Process Archive Chunk Completion](https://<instnace_name>.service-now.com/nav_to.do?uri=sysevent_script_action.do?sys_id=4e7381a973cb301026f6aa114df6a755) Debugging Tips: * The "keys" field in the "sys_archive_run_chunk" contains the CI sys_ids designated for archiving from the CMDB Data Management Task. You can utilize the "cmdb_task_to_archive_chunk" to determine the number of archive chunks being used for archiving. (We can use the above to narrow down if the CI is archived or not) * If there is an issue with the "sys_archive_run_chunk" not progressing or encountering errors, please reach out to Performance, as they are equipped to diagnose and propose next steps. * If "cmdb_task_to_archive_chunk" is not updated with either an error or "Completed" state, the CMDB Data Management Task will be stuck in the "Pending" state. * If the CIs are successfully archived and both "cmdb_task_to_archive_chunk" and "sys_archive_run_chunk" are in a "Completed" state, further assistance can be sought from the Development team. Related Links<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } https://www.servicenow.com/docs/bundle/washingtondc-servicenow-platform/page/product/configuration-management/concept/cmdb-data-management.html