Import sets can run identification and reconciliation on each row before it is written, which helps stop a load from duplicating existing CIs. The same engine covers a short list of non-CMDB tables, such as users and groups, once identification rules exist for them.
Why an import set can create duplicate CIs
A plain import has no step that asks whether a record already exists, so an imported record identical to a CI already in the CMDB is inserted again. Identification and reconciliation adds that check. For the general model outside import sets, see CMDB identification and reconciliation explained. For the transform-map side of duplicate control, see the guide to transform maps that update without duplicates. Before each source row goes in, the engine decides whether it duplicates an existing CI. If not, the row is inserted into the target table. If so, the existing CI is updated with the source values.
That has two planning consequences. The check runs for each row inside the transform. And the update branch means a load can change existing records, not only add new ones. Decide before the first run which fields the import may overwrite, because the reconciliation rules described below control that.
Adding the identification call to the transform
The hook sits in the onBefore transform map script of the import set. The script creates the CMDB transform utility, sets its data source to the import set, and passes the source row, the transform map and the log to the identify-and-reconcile method. The utility then hands the values to the engine.
The script sets the ignore flag to true after that call. Without it, the import set would insert the same record again after the engine has handled it. Check whether the utility reports an error and log the message if it does. Otherwise, log the output payload and the sys_id of the imported CI. Write these log lines up front; they are the main evidence when a load misbehaves.
The utility also accepts a reference target field and a source script that evaluates the target value, so a reference can be resolved before identification runs.
Loading several target classes from one file
One import set can send each row to its own class. Add a column to the data file that names the target table per row, such as cmdb_ci_computer. After Auto Map Matching Fields on the Table Transform Map form, add a field map from that column with Class as the target. When you do this, the target table on the Table Transform Map form is not used, so confirm the field map before a test run.
Limits for import set loads
Three restrictions shape the design. An import set should stay tied to a single transform map. The utility does not check mandatory fields, so a load fails when a mandatory field is empty, whatever the enforce mandatory setting says; the script or the file must supply those values. And identification and reconciliation cannot be applied through an import set to dependent CIs, meaning CIs with dependent identification rules. Those records fall outside this import set route.
Non-CMDB tables the engine supports
IRE supports some non-CMDB tables. In an application-specific scope, all non-CMDB tables qualify. In the global scope, only the non-CMDB tables preset in the base system qualify, which are the tables below.
| Table label | Table name |
|---|---|
| Location | cmn_location |
| Department | cmn_department |
| Cost Center | cmn_cost_center |
| Building | cmn_building |
| User | sys_user |
| Group | sys_user_group |
Once a table qualifies and its identification rule is in place, the full IRE feature set works with it. CMDB 360 in the CMDB Workspace and IntegrationHub ETL also work with these tables. The CI Class Manager cannot manage these rules, so you work in each table's list view. Behaviour also differs in places. IRE does not populate discovery source, last discovered or first discovered on a table that lacks them, and payloads cannot carry relationships to non-CMDB tables.
Identification rules for non-CMDB tables
Create the identification rule first, because the other IRE features on these tables need it. Each table takes a single identification rule, made of one identifier, one or more identifier entries and one or more related entries. The identifier must be independent, since dependent rules are not supported here.
Open All, then Identification/Reconciliation, then CI Identifiers, and create the identifier against the supported table. On its Identifier Entries tab, a regular entry takes criterion attributes from the same table, and a lookup entry takes them from another table that references the identifier table. A hybrid entry mixes both, but its current-table attributes are added by background script after you save the rule, which needs the admin role.
Priority works with lower numbers first. Entries with equal priority are applied in random order, so give each one its own number and leave gaps. At least one entry must be active. Allow null attribute decides whether matching runs when some criterion values are blank: when it is off, all criterion attributes need a value. Watch one trap: with two criterion attributes where one is sys_class_name, the other cannot be null even if the setting is on.
Reference fields make weak criterion attributes, because they store sys_ids. An invalid reference value becomes the text Unknown, and records sharing Unknown become duplicates.
Reconciliation rules for non-CMDB records
Identification decides whether a record is new. Reconciliation decides which source may change fields on a record that exists. You cannot write a reconciliation rule for a system field or for an IRE field such as discovery_source, and reconciliation rules cannot be dot-walked through reference fields.
A static rule names the sources allowed to update attributes and gives each a priority, where a smaller number wins. Without static rules, sources overwrite each other. After an authorized source updates an attribute, later updates are accepted only from that source or a higher-priority one. A lower-priority source gets through only if it is the first to update the record or the record has gone stale under the data refresh rules.
The form takes the data source, its priority, and Applies to, which authorizes all attributes but yields to any attribute-specific rule. It also takes a filter condition, an attribute list, and Update with null. That last list lets a source clear a value, since by default a non-null value cannot be overwritten with null. The filter condition has a timing detail: by default it is applied after values change during payload processing. Setting glide.identification_engine.enable_reconciliation_filter_before_update to true applies it before.
Precedence runs in a fixed order. An attribute-specific rule beats an all-attributes rule regardless of priority numbers. A rule on the class beats one derived from its parent. Priority decides within the same level. A dynamic rule on an attribute beats a static rule there. Dynamic rules require CMDB 360 and pick a value such as the largest or most reported value from its data store, falling back to last reported, last discovered and last updated values when needed.
Data refresh rules define staleness. In the Data Source Staleness Definitions table you set the class, the data source and an effective duration. If the static rule's fields were not updated by that source within the duration, the record is stale for that source. A valid number followed by an invalid suffix, such as 15 x, is read as 15, and a wholly invalid value falls back to 0. These rules have no effect while a dynamic rule applies.
The last-update history table, cmdb_datasource_last_update, fills in only after you enable the rule. Until the highest-priority source has updated each record, you may see updates you did not expect, so plan the first load around that gap.
Blocking inserts and narrowing identification
An IRE data source rule stops one source from inserting new records into a non-CMDB table while still letting it update existing ones. That suits a feed you trust to change records but not to create them. It needs the sn_cmdb_admin or itil_admin role, and a single active rule is allowed per class and data source pair. A blocked insert fails and logs INSERT_NOT_ALLOWED_FOR_SOURCE. With the enhanced API the item is kept as a partial payload; with createOrUpdateCI the whole payload fails. When a permitted source later inserts the matching record, IRE merges the stored item and the blocked source can then update normally.
Identification inclusion rules narrow which records take part in duplicate detection for independent records. None are predefined, and without one all records are included. A rule can limit identification to records whose state is operational, for instance. It affects any script that calls IRE, so it can stop some records being identified, which can reach Discovery and Service Mapping.
Frequently asked questions
Does an import set stop duplicate CIs on its own?
No. The identification call in the onBefore script is what checks each row against existing CIs before insert. Without it, a row that matches an existing CI can go in as a duplicate.
Which non-CMDB tables can I use?
An application-specific scope gives access to all non-CMDB tables. In the global scope, only the base-system tables qualify, which are the location, department, cost center, building, user and group tables.
Why does my reconciliation rule seem to do nothing?
Start with precedence: an attribute-specific rule beats an all-attributes rule, and a dynamic rule beats a static one on the same attribute. Then check staleness, because a lower-priority source is accepted only when the record is stale or it is the first to write the record.
Can one file load records into different classes?
Yes. Add a per-row class column and map it to Class with a field map.
Can a dependent CI come in through an import set?
No. Dependent CIs are outside what the import set identification call covers.
Where to go next
The identification and reconciliation engine hub covers the wider model, including the rule types used on CMDB classes. If you are scoping duplicate control or a reconciliation project across a live CMDB, the CMDB reconciliation and duplicate control page is the next place to look.