Transform Creates Zero Records Due to Script Error
This SNOW-CSA practice question tests your understanding of reporting, sla and imports. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
Refer to the exhibit.
[Import Set Row XML]
<?xml version="1.0" encoding="UTF-8"?>
<import_set_row>
<source>csv_import</source>
<staging_table>u_import_incident</staging_table>
<field name="u_number">INC001</field>
<field name="u_short_description">Server down</field>
<field name="u_category">Infrastructure</field>
<field name="u_assigned_to">admin</field>
</import_set_row>
[Transform Map Log]
Transform started for source csv_import on table u_import_incident
Field mapping: u_number -> number (coalesce true)
Field mapping: u_short_description -> short_description
Field mapping: u_category -> category (script)
Script error: Cannot read property 'sys_id' of null
Field mapping: u_assigned_to -> assigned_to (direct)
Transform completed: 0 records created, 0 updated
Based on the exhibit, why did the transform create or update zero records?
Exhibit
Refer to the exhibit.
[Import Set Row XML]
<?xml version="1.0" encoding="UTF-8"?>
<import_set_row>
<source>csv_import</source>
<staging_table>u_import_incident</staging_table>
<field name="u_number">INC001</field>
<field name="u_short_description">Server down</field>
<field name="u_category">Infrastructure</field>
<field name="u_assigned_to">admin</field>
</import_set_row>
[Transform Map Log]
Transform started for source csv_import on table u_import_incident
Field mapping: u_number -> number (coalesce true)
Field mapping: u_short_description -> short_description
Field mapping: u_category -> category (script)
Script error: Cannot read property 'sys_id' of null
Field mapping: u_assigned_to -> assigned_to (direct)
Transform completed: 0 records created, 0 updated
A
The assigned_to field mapping is missing a coalesce
Why wrong: Missing coalesce would cause inserts, not zero records.
B
The staging table does not match the target table
Why wrong: Staging table is u_import_incident, which exists.
C
The script on the category field has an error
The log shows script error, causing the row to skip.
D
The coalesce field is set incorrectly
Why wrong: Coalesce is set and should work, but error interferes.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The script on the category field has an error
Option C is correct because the script on the category field contains an error that causes the transform to fail silently, resulting in zero records being created or updated. In ServiceNow, a transform script that throws an unhandled exception or returns an unexpected value (e.g., 'false' or 'skip') will abort the mapping for that row, and if it affects all rows, no records are processed. The exhibit likely shows a script that either has a syntax error or logic that prevents any row from passing through the transform map.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✗
The assigned_to field mapping is missing a coalesce
Why it's wrong here
Missing coalesce would cause inserts, not zero records.
✗
The staging table does not match the target table
Why it's wrong here
Staging table is u_import_incident, which exists.
✓
The script on the category field has an error
Why this is correct
The log shows script error, causing the row to skip.
Related concept
Read the scenario before looking for a memorised answer.
✗
The coalesce field is set incorrectly
Why it's wrong here
Coalesce is set and should work, but error interferes.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often assume a missing coalesce or table mismatch is the root cause of zero records, but this question tests the understanding that a transform script error can silently abort all row processing without producing a visible error message, unlike field-level mapping issues which only affect specific fields.
Detailed technical explanation
How to think about this question
Under the hood, ServiceNow transform scripts execute in a sandboxed JavaScript environment where any uncaught exception (e.g., TypeError, ReferenceError) causes the current row to be skipped and logs an error in the transform history. A common subtle behavior is that a script returning 'false' explicitly (e.g., `return false;`) will skip the row, and if applied to all rows, results in zero records. In real-world scenarios, a developer might inadvertently use a variable that is undefined or call a method on a null object, causing the script to fail for every row without raising a visible error in the UI.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A practitioner preparing for the SNOW-CSA exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Reporting, SLA and Imports — This question tests Reporting, SLA and Imports — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The script on the category field has an error — Option C is correct because the script on the category field contains an error that causes the transform to fail silently, resulting in zero records being created or updated. In ServiceNow, a transform script that throws an unhandled exception or returns an unexpected value (e.g., 'false' or 'skip') will abort the mapping for that row, and if it affects all rows, no records are processed. The exhibit likely shows a script that either has a syntax error or logic that prevents any row from passing through the transform map.
What should I do if I get this SNOW-CSA question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This SNOW-CSA practice question is part of Courseiva's free ServiceNow certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SNOW-CSA exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.