How I can reject the whole file to import using transform script, If any record have incorrect entry?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 05:22 AM
Hi,
I have a scenario, where i'm importing some data into the tool using transform map. I have to accept only the acceptable value which can be yes, no and unknown. If the value is coming from excel other than any of this values it should reject entire file. In my case it is rejecting only row that have incorrect data. I have to complete this requirement asap. Please help me on this?
Thanks,
Vishal Kumar
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 05:39 AM
Hello,
See this thread and tweak code accordingly
https://community.servicenow.com/community?id=community_question&sys_id=05918270db05d050d58ea345ca961968
Regards
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2022 11:53 AM
Hello,
If you are fine with my response, Please hit like and mark my response as correct if that helps.
Regards
Regards,
Musab