---
sourceDocument: Zurich Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/zurich/service-management-for-the-enterprise

 Release :

    - zurich

ft:locale :

    - en-US

ft:publication_title :

    - Zurich Service Management

ft:clusterId :

    - sm4e

bundleId :

    - sm4e

workflow :

    - Technology


---

# Rebuild state flows

# Rebuild state flows {#ariaid-title1}

* Release version: Zurich
* 
* Updated July 31, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

You can rebuild state flows when a mismatch between existing and new sys_ids occurs.

When you use an XML file to import a state flow record into an instance, the system attempts to
match the incoming states with existing states by comparing sys_ids. Because the sys_ids of items
in a choice list can vary between instances, the system can fail to match the states, even though
they are otherwise identical.

When matching fails, the start and end states of affected records are left blank or contain
numeric values. To repair these records navigate to State FlowsAdminRebuild State Flows. This module runs a script that compares the numerical value of each item in the
State field choice list until it finds a match in the imported state flow
record.

*[\>]: and then


