Transform Map Overwrite Issue: Non-Empty Target Fields Not Replaced by Empty Import Set Values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Please help identify the cause of the following issue:
When importing data from an Import Set table to the target table, existing non-empty fields are expected to be overwritten with empty values, but they are not being overwritten.
What could be preventing the overwrite with empty values?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
do you have field map for that target field in your transform map? then only it works
see if source value is actually empty and doesn't contain any space character etc
is the target field readonly?
any before insert/update BR blocking from making it empty?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
sure
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @颯史小
To prevent an import from overwriting existing non-empty target fields with empty source values during a ServiceNow transform, you should
1) Ensure the 'Copy empty fields' option is unchecked in the Transform Map configuration,
or
2) Using a field-level script to explicitly ignore blank source values
Use this script in the onBefore transform script (for all fields) Or Field map script (individual field)
if(source.u_field1 == '' ){
ignore = true;
}
