How can we push errors into an error field of sys_import_set_row table via transform map script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2015 05:02 AM
How can we push errors into an error field of sys_import_set_row table via transform map script.
I have written few validations in a transform map script, which will ignore the row if condition doesn't matches.As there are many scenarios so I want to push the information in the error field of sys_import_set_row table that why row got ignored.
I didn't see any function in wiki that we can use to push error to error field of sys_import_set_row table via transform map script.
Does anyone have any solution?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2015 05:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2016 01:10 PM
I'm not totally sure that I understand the question, but I log errors ( and informational messages ) using the log object if I'm in a transform map script..
See Transform Map Scripts - ServiceNow Wikiffor details.
Some example calls:
log.info("This is my informational message" );
log.error("This is my error message");
The messages all end up in the import log. Is that what you're trying to do?