On this page
Short answer
Import sets create duplicate CIs because a transform map matches only on its own coalesce fields, on one target table, from one feed. ServiceNow's documentation says so directly: populating CMDB tables with import sets can inadvertently create duplicate CIs when imported records are identical to an existing CI. The fix is to let the Identification and Reconciliation Engine (IRE) decide what counts as the same CI.
Import sets create duplicate CIs because a transform map matches only on its own coalesce fields, on one target table, from one feed. ServiceNow's documentation says so directly: populating CMDB tables with import sets can inadvertently create duplicate CIs when imported records are identical to an existing CI. The fix is to let the Identification and Reconciliation Engine (IRE) decide what counts as the same CI.
This post stays on the integration side: data arriving through transform maps, coalesce keys and IRE. It does not cover how a CMDB should be modeled or governed. Our ServiceNow integration consulting work starts at the point where a feed is already loading and the record count looks wrong.
What does coalesce do, and where does it stop?
Coalesce is a setting on a field map. When the incoming value equals the value already in the target field, the existing record is updated rather than inserted, and with no match you get a new record. The docs warn to coalesce only on fields that hold unique values, because if more than one record matches, only the first match is updated.
Coalesce can use one field, several fields that must all match, or a script that returns a sys_id. It is still a rule you wrote for one import. A second feed with a different key, a typo in a hostname or a serial number that one source leaves blank all slip past it, and each slip becomes a new CI.
How does IRE decide differently?
IRE, the CMDB identification engine, handles CI identification with identification and reconciliation rules for the class, not with the keys of one import. You configure the rules once and every source benefits. The IRE documentation also lets a source pass a source_name and source_native_key, and when those identify the CI uniquely, the slower rule matching is skipped. IRE also applies reconciliation rules so that only authoritative data sources write to an attribute.
| Import set coalesce | IRE through CMDBTransformUtil | |
|---|---|---|
| Matches on | Target fields you tick on the field map | Identification rules for the CI class, plus source keys |
| Scope | One transform map, one target table | Every source that sends data through IRE |
| On a match | Updates the record | Updates the existing CI with the source data |
| On no match | Creates a record | Inserts the CI |
| Attribute ownership | Whatever the map writes | Reconciliation rules limit which source may write |
How do you put IRE into an import set?
Call the CMDBTransformUtil API in the transform map's onBefore script. ServiceNow's sample, in outline:
- Create a
CMDBTransformUtilobject and callsetDataSource('ImportSet'). - Call
identifyAndReconcile(source, map, log)on the current row. - Set
ignore = trueso the import set does not create the record a second time. - Check
hasError(); loggetError()if set, otherwise loggetOutputPayload()andgetOutputRecordSysId().
To load several CI classes from one file, add a target-table column holding a class name such as cmdb_ci_computer, then add a field map from that column to the Class field. With that column in place, the transform map's own Target table field plays no part.
What are the limits?
- Each import set should use a single transform map, even with the API call added.
- Mandatory fields are not validated by the API, so a row with one left empty fails whatever the transform map says.
- Dependent CIs, meaning classes whose identification rules depend on another CI, cannot go through IRE from an import set.
- Items that IRE cannot uniquely identify can be held as partial items instead of being inserted, so row counts will not always equal CI counts.
The last point is why we ask for the IRE error list as well as the import set row count before changing a map. A load that looks complete can hold partial payloads, which ServiceNow deletes after 90 days. The change is to how the load is configured; the CMDB model stays as it is. Our companion post on reading the CMDB Integrations Dashboard shows where processing errors surface.
What happens once duplicates exist?
IRE groups each set of duplicate CIs it detects into a de-duplication task for review. With the default settings (glide.identification_engine.skip_duplicates true and a threshold of 5), if fewer duplicates than the threshold are found, IRE updates the oldest one as the main CI and tags the rest with duplicate_of. If skip_duplicates is false, matching fails with an error and none of the duplicates are updated. Remediation consolidates the set into a single CI, and the De-duplication Dashboard in CMDB Workspace handles tasks in bulk.
Remediation is a clean-up step. It does not fix the feed that created the duplicates, which is why identification belongs in the load path, not after it.
Should you stay on import sets at all?
For a one-off or low-volume load that does not insert relationships, import sets with IRE can be enough. For a continuous feed from a third-party system, check whether a Service Graph Connector already exists, and confirm your entitlement before assuming it is included. Custom feeds built in IntegrationHub ETL appear on the dashboard in our companion post, next to the connectors. If you want a second pair of eyes on a feed, our CMDB import and IRE reconciliation assessment is written for that.
Sources
- Applying IRE to Import Sets, ServiceNow docs, read 4 December 2026
- Updating records using coalesce, ServiceNow docs, read 4 December 2026
- Identification and Reconciliation Engine (IRE), ServiceNow docs, read 4 December 2026
- Detecting duplicate CIs and Duplicate CIs remediation, ServiceNow docs, read 4 December 2026
Frequently Asked Questions
Why do import sets create duplicate CIs?
A transform map only knows about its own coalesce fields on one target table. If another feed already created the same server under a different key, the map sees no match and inserts a second record. IRE identifies the CI with rules built for the CMDB class, across every source.
Does the CMDBTransformUtil call check mandatory fields?
No. ServiceNow's documentation says it does not check mandatory fields on import sets, so a row with a mandatory field empty fails whatever the enforce-mandatory setting says.
Can IRE be applied to every import set?
No. ServiceNow documents two limits: dependent CIs (classes whose identification rules depend on another CI) cannot go through IRE from an import set, and each import set should use a single transform map.
Talk to an engineer
Need a hand with ServiceNow?
Senior engineers who run it in production. Get a quote or a free consultation, no sales pitch.

