SERVICENOW CSA STUDY TOPIC

ServiceNow Data Source, Import Set, Transform Map and coalesce

A Data Source retrieves external rows. An Import Set stages them. A Transform Map converts them into target records. Coalesce determines whether each row updates an existing record or inserts a new one.

Updated 18 August 2026 · Original ITCertPath learning resource

Understand the pipeline before configuring a match

1Data source

Defines where and how external data is retrieved.

2Import Set

Loads source rows into a staging table.

3Transform Map

Maps and converts staged fields to a target.

4Target table

Receives inserted or updated application records.

CSA decision rule

If the question asks where raw rows wait, choose the Import Set table. If it asks how fields move to the target, choose the Transform Map. If it asks how an existing record is found, inspect coalesce.

Import Set: a controlled staging area

Import Sets bring data from sources such as files, JDBC connections and integrations into an import-set table. Staging preserves incoming values and gives administrators a place to inspect row quality without writing raw source data directly into a business table.

Source evidence

See the actual value that arrived, including blanks and formatting.

Run history

Relate rows to an execution and inspect processing state or errors.

Separation

Keep extraction and staging distinct from target mapping.

An Import Set alone does not define target-field relationships. That responsibility belongs to a Transform Map.

Transform Map: source-to-target mapping and conversion

A Transform Map connects one import-set table to one target table. Field maps relate source columns to target fields. Administrators can use automatic mapping, Mapping Assist, source scripts and transform-event scripts when declarative mapping is insufficient.

ComponentMain questionExample
Import SetWhat data arrived?u_employee_id=E1042
Transform MapWhere should each value go?u_employee_id → employee_number
CoalesceWhich target record already represents this row?Match employee number E1042

Prefer clear field maps over unnecessary scripts because declarative mappings are easier to test and maintain.

Coalesce: choose update versus insert with a stable key

When a source field map is marked coalesce, the transform searches the target for a record whose target field matches the incoming value. A match normally results in an update; no match normally results in an insert.

Incoming rowemployee_number = E1042
Search target
Match foundUpdate employee
No matchInsert employee

Choose an immutable source-system identifier when possible. Names, email addresses and departments can change and may not be unique. If multiple fields coalesce, their combined values must consistently identify the target.

Coalesce does not clean old duplicates automatically

It guides the current transform’s match decision. Existing duplicates require separate analysis and controlled remediation.

Worked scenario: nightly employee file creates duplicates

Situation: HR sends a nightly CSV. The Transform Map coalesces on email. Employees who change email receive a second user record instead of an update.

Evidence 1

Email changed

The incoming value no longer matches the old target email.

Evidence 2

Stable ID exists

The file contains an employee number that remains constant.

Correction

Use employee number

Validate uniqueness, coalesce on it and map email as an updateable field.

Safe resolution

Test representative inserts and updates outside production, review outcomes, reconcile existing duplicates under approval, and monitor the next scheduled import.

Duplicate import troubleshooting sequence

  1. Inspect the staged row: verify the key arrived and uses the expected format.
  2. Inspect the field map: confirm source, target and coalesce configuration.
  3. Query the target: check changing values, formatting and existing duplicates.
  4. Review transform history: determine whether the row inserted, updated, ignored or failed.
  5. Check active maps and schedules: identify another process creating records.
  6. Review scripts and business rules: locate logic that changes keys or creates related records.
What you learned

“Coalesce is checked” is not proof that matching works. Source values, target data, map configuration and other writers must agree.

A safe production import process

Profile

Measure blanks, duplicates and invalid references.

Map

Document conversions and the stable key.

Test

Cover insert, update, blank-key and invalid-value cases.

Review

Compare expected and actual row outcomes.

Protect

Define backup and rollback or repair methods.

Monitor

Track scheduled runs and outcome changes.

Practice checks with explanations

Where are spreadsheet rows stored before they become incident records?

Best answer: an Import Set table—the staging layer for external rows.

What maps u_caller_email to caller_id?

Best answer: a Transform Map field map and its reference behavior or script.

What determines whether an incoming asset updates instead of inserts?

Best answer: coalesce matching on a stable, correctly mapped identifier.

Common ServiceNow CSA mistakes

  • Calling the Import Set the final target.
  • Calling coalesce a separate table or engine.
  • Coalescing on mutable display values.
  • Assuming coalesce repairs old duplicates.
  • Testing inserts but not updates.
  • Ignoring blank keys and formatting differences.
  • Adding scripts before checking standard field maps.

Data Source: where and how rows are retrieved

A ServiceNow Data Source describes the incoming system and retrieval method. It loads rows into an import-set staging table; it does not decide which production fields receive those values.

Source typeTypical useFirst check when loading fails
FileCSV, Excel or XML deliveryAttachment, format and column headers
JDBC or LDAPDatabase or directory extractionConnection, credentials and query or filter
REST or Data StreamAPI-based integrationAuthentication, response shape and pagination
Custom load scriptSpecial retrieval logicScript output and staging-table insertion

Scheduled Data Import: connect retrieval, transformation and timing

A scheduled import joins a Data Source to one or more Transform Maps and defines when the job runs. Review the run-as user, frequency, optional condition, pre-import script, post-import script and transform order before enabling it.

  • Use daily, weekly, monthly or periodic timing when the source has a predictable delivery window.
  • Use After Parent Runs when one import depends on another import completing first.
  • Avoid scheduling competing imports for the same time unless concurrency and target-table behavior have been tested.
  • Use Execution Contexts to inspect scheduled or concurrent flow when a run behaves intermittently.

Coalesce options and edge cases

ConfigurationMatch behaviorRisk to check
No coalesceEvery transformed row is treated as newRepeated imports create duplicates
Single fieldOne stable value finds the targetBlank, mutable or non-unique key
Multiple fieldsAll coalesce values must matchOne changed value prevents the update
ConditionalA script can return a target sys_idComplex matching is harder to test
Case sensitiveLetter casing must also match when enabledSource normalization differs
Coalesce empty fieldsAn empty source can match an empty targetUnintended records may qualify

If a coalesce query finds more than one target record, the transform updates only the first match. Treat that as a target-data quality problem, not a reliable matching strategy.

Use run evidence to isolate the failed layer

Import Set Runs summarize inserted, updated, ignored, skipped and errored rows. Open row details to inspect state, target-record links, errors and comments; use the Import Log for messages spanning source loading and transformation.

Observed evidenceLikely layerNext check
Zero staged rowsData Source or connectionFile, query, authentication and retrieval log
Rows staged, no targetTransform MapActive map, target, conditions and scripts
Everything insertedCoalesce matchingIncoming keys, mapped target field and format
Ignored or skippedTransform logicRow comments, required fields and event scripts
ErrorsRow or target validationError detail and linked target record

Frequently asked questions

What does a ServiceNow Data Source define?

A Data Source defines where and how ServiceNow retrieves incoming data, such as a file, JDBC connection, LDAP source, REST integration, Data Stream action or custom load script. The retrieved rows are loaded into an import-set staging table before transformation.

What is an Import Set in ServiceNow?

An Import Set stages data from an external source in an import-set table. It separates incoming rows from production target tables so the data can be reviewed and transformed.

What does a Transform Map do?

A Transform Map defines how fields from an import-set source table map to a target table. It can include field maps, scripts, choice handling, reference behavior and transform-event logic.

What does coalesce mean in a ServiceNow Transform Map?

A coalesce field is used to find an existing target record. If a matching record is found, the transform updates it; otherwise, the transform normally inserts a new record.

What happens when multiple fields are marked coalesce?

The transform uses the coalesce fields together to identify a target match. Choose a combination that is stable, populated and genuinely unique in the source and target.

Why can duplicates still appear when coalesce is enabled?

Common causes include blank or inconsistent source keys, mapping the wrong field, changing identifiers, formatting differences, pre-existing duplicates, multiple transform maps or another process creating records.

Where can I troubleshoot a ServiceNow import run?

Start with the import set execution or run details, then inspect row states, target-record links, errors and comments. Use the Import Log for messages across source loading and transformation, and Execution Contexts for scheduled or concurrent import flow.

Official ServiceNow references

Review ServiceNow’s Zurich documentation for Data Sources, Import Sets, Transform Maps, coalesce, scheduled imports and import run details. Validate behavior in the target release and instance.