OBLYTECH Logo
OBLYTECH Logo

ServiceNow Instance Data Replication: Setup and Error Recovery

Instance Data Replication (IDR) copies chosen tables from a producer instance to one or more consumer instances, then sends each later change. Setup runs in five stages: confirm the subscription, decide which tables and columns travel, build the producer replication set, create and approve a matching consumer set, and seed the existing records.

Confirm the subscription and instance layout

IDR needs its own subscription. The plugin ID is com.glide.idr, and ServiceNow personnel activate it during a maintenance window with three dependent plugins: com.snc.db.data_replicate, com.glide.transform and com.glide.kmf. IDR runs in ServiceNow data centers, so on-premise instances cannot take part. Both instances should belong to the same customer and ideally share a region, because latency rises across separate data centers. The person setting up needs the idr_admin or admin role.

Decide which tables and columns to replicate

System tables with a sys_ prefix are usually left out. A table such as sys_user looks harmless on the producer, but on a consumer that already holds users, its inserts and updates collide with existing rows.

CMDB tables need care: replicating configuration items as each change happens can strain both ends, so schedule the job or cap the record count. Exclude sys_ columns and any column that scripts update automatically, since a column the platform updates often can make IDR replicate more often than needed, which draws on the capacity subscription.

A reference field that points outside the set arrives empty on the consumer, so replicate the referenced table alongside it.

Grouping option What it gives you What it costs you
One replication set per table Pause one table without touching others. Replication runs as parallel jobs. More sets to create and watch
One set for a group of related tables Quicker to create and manage. One place to pause the group. A fault on one table stops the whole group

Keep a grouped set to five tables or fewer.

Build the producer replication set

On the producer, open Instance Data Replication, then Producer Replication Sets, and select New. Name the set with letters, numbers and hyphens. The consumer set must carry exactly the same name.

Bi-Directional lets changes made on a consumer flow back to the producer. Discrete turns on discrete mapping, so the producer can route different records to different consumers. Decide both before seeding, because seeding is not offered for bidirectional or discrete sets.

After submit, add an outbound entry for each source table. An entry can carry a filter, an Include Attachments switch, an Included Fields list and an Enable Custom Coalesce switch. The sys_id field is mandatory and is included. Fields such as Edge Encrypted and Password cannot be replicated. Add child tables alongside any parent you replicate; the hierarchy section explains the options.

Replication starts after you select Activate on the producer and link it to a consumer set.

Create and approve the consumer set

On the consumer, open Instance Data Replication, then Consumer Replication Sets, and select New. Enter the producer instance URL, the producer set name exactly as written, and a description. Submit.

The producer administrator must approve the request. The consumer status reads Subscription Requested until the producer administrator approves the request. Once approved, activate the consumer replication set. Select Synchronize Replication Entries to copy the producer’s configuration; the chosen tables then appear on the Inbound Entries tab.

Each inbound entry offers three options. Preserve Modified By names the user who made a change, with IDR prefixed, in Activities entries; it does not affect seeded records. Run Business Rule fires the target table’s business rules after each replicated insert or update, which suits notifications or validation. Enable Transform maps the producer table to a differently named consumer table.

Select Activate on the Inbound Entries tab. The status then reads Active, and the Full Seeding and Partial Seeding buttons are available.

On the producer, approvals sit under Consumers Pending Approval or the Consumer Subscriptions tab. Revoke generates a new shared encryption key for approved consumers. Denied or pending consumers stop receiving data and must reapply. Revoke is the step for a consumer that should stop receiving data.

Seed the consumer with existing records

Seeding copies records that already exist on the producer. Full seeding copies a table in full, while partial seeding copies the records that match a custom filter.

For a partial seed, open the consumer’s Inbound Entries tab, choose the entry, and select Partial Seeding. Add filter conditions, optionally include attachments or field history, adjust Included Fields, then select Save Configuration and Request Partial Seeding.

The producer runs one seeding request at a time and queues the rest in arrival order. Records found on the producer alone are copied across. A matching sys_id overwrites the consumer record with the producer version.

Seeding has limits. A request can hold up to 3 million records, and the run must finish within seven days. A retry is capped at 10,000 errors, and above that, run a full seed instead. Seeding continues past failing tables, and you can restart those tables. If an upgrade begins mid-seed, the run pauses and resumes afterward.

Choose a strategy for parent and child tables

Pick a strategy before building the set.

Strategy How it works When it fits
Full hierarchy with child columns Add a sys_class_name filter to each table, such as task on the parent and incident on the child You need the complete record in each child table
Hierarchy kept, parent columns Replicate the parent with the Class Name field included Child rows must stay in place, but child-specific columns are not needed
Hierarchy ignored Replicate the parent without the Class Name field Records need to read as parent-type records

Keep the instances in step and read the errors

Two background jobs carry updates after seeding. IDRProducerJob on the producer sends changes to the message queue, and IDRConsumerJob on the consumer reads them from it. Expect a temporary backlog during activity spikes; it should shrink as the jobs process the messages. The IDR Queue Dashboard shows queued producer records and the outbound and inbound messages still waiting or already processed.

Failures are logged in the Replication Payload Error table on the consumer. Read the Error Message field, which names the business rule, ACL or data policy that refused the record.

  • Business rules on the target table can stop the idr.system user from inserting, updating or deleting. Confirm the rule lets that user through.
  • ACLs must grant idr.system the roles it needs on the target table.
  • Data policies must accept the replicated values.
  • A child table replicated without a sys_class_name filter on its parent causes a duplicate insert on the parent and later failed child updates. This applies to sets created before the Utah release. Add the filter to the parent outbound entry. Review only the rows that still differ, which the data comparison feature can find.
  • Duplicates appear when the target table already holds records from another source with different sys_ids. Clear the table first, or use a custom coalesce field.

Bidirectional replication is switched on by ticking Bi-Directional on the producer and running Synchronize Replication Entries on each consumer. One detail matters: a change that a business rule makes on the consumer right after an insert does not flow back to the producer.

Transform data and coalesce on a different key

Enable Transform on an entry, choose a target table, and map fields. Adapters modify data before it is stored on the consumer. The sys_created, sys_created_by, sys_domain, sys_updated_by, sys_id and sys_mod_count fields map automatically and cannot be remapped, and adapters cannot act on journal fields such as Comments.

IDR matches records on sys_id by default. When records were created separately on each instance, a custom coalesce field is the fix. When transform is enabled, the coalesce field must exist on the consumer with the same name, length and type. Its Unique flag in the dictionary entry must be true. Do not change its value once it is set.

How IDR differs from copying an instance

Instance cloning copies the whole database, IDR configuration included. A recurring clone keeps the target’s own IDR setup. A true clone brings the source configuration over, after which each consumer must be resubscribed to the new producer. A migration clone brings the source configuration over while the target keeps its own sets, using an update set to capture them. The instance cloning guide explains the preserve and exclude lists for each pattern.

Upgrades and legacy sets

IDR pauses during an instance upgrade and resumes from the last change made before it began. Sets created before the Utah release are legacy sets, deprecated in the Zurich release, and they must move to V2 to keep replicating. A legacy set is eligible when both sides run Utah or later and its configuration allows it, and the Upgrade Eligibility column shows the status. Some configurations are not eligible, such as bidirectional or discrete sets. Each subscribed consumer also needs a V2 consumer replication set, activated to complete the upgrade.

Frequently asked questions

Can IDR replace an instance clone?

No. Seeding copies records and keeps them in step; it does not copy the whole database.

Why are my consumer rows duplicated after activation?

The target table probably held records from another source, so the sys_id values did not match. Clear the table before replication starts, or set a unique custom coalesce field.

Why do child table records fail to insert or update?

On a set created before the Utah release, the parent needs a sys_class_name filter whenever a child is replicated. Without it, parent and child inserts collide. Add the filter to the parent outbound entry and review the affected rows.

What happens to replication during an upgrade?

IDR pauses, sends and receives no messages during the upgrade, and resumes from the last change made before it began. Seeding in progress pauses and resumes too.

For related guides, see the data migration and import sets section.