
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2022 10:18 AM
Hello, does anyone know what causes the symptom shown in this script to occur? Thanks!
EDIT: See the Import sets properties [ServiceNow Docs] page for more info on Import Set properties, as there is no "Import Set Properties" module in the platform. Thanks
onBefore Transform Script
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {
log.info(source.sys_import_row + ' info'); //does not get created
log.warn(source.sys_import_row + ' warn'); //gets created successfully
log.error(source.sys_import_row + ' error'); //gets created successfully
})(source, map, log, target);
Transform History Form
Here are the results when ran on an import set that has 3 import rows. You can see that both A) the transform script ran because the warn and error lines are present and B) the log.info(str) did not work properly because the info lines are missing.
Any ideas? Thanks!
BTW: This is on a fresh PDI and using a global table, transform map, and transform script.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2022 05:44 PM
Ignore the now deleted message. That's the wrong property to set. glide.importlog.log_to_table
is the correct one.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2022 04:20 PM
Are you also running a fairly new San Diego PDI? I've changed the property to what's shown in the image below, but this line still isn't appearing anywhere.
(function runTransformScript(source, map, log, target /*undefined onStart*/) {
log.info('HEY?'); //does not print
log.warn('HEY!'); //prints fine
})(source, map, log, target);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2022 05:44 PM
Ignore the now deleted message. That's the wrong property to set. glide.importlog.log_to_table
is the correct one.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2022 06:17 AM
Thanks, that did the trick! It would be nice if SN would add an Import Set Properties module. I looked for one and wasn't able to find it. I should have looked in the docs, though, like you did.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2022 09:01 AM
You're most welcome!
And agree, SN could try readily exposing more "advanced", but - in the end - common sense stuff; unfortunately these days if you are not a "citizen" developer you are an outlier. 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 08:42 AM
This definitely helped. Thanks
I think it is controversial why some log function depend on the property and not warn or error function.