How I can reject the whole file to import using transform script, If any record have incorrect entry?

Vishal Kumar Sr
Tera Contributor

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

 

2 REPLIES 2

Musab Rasheed
Tera Sage
Tera Sage

Hello,

See this thread and tweak code accordingly

https://community.servicenow.com/community?id=community_question&sys_id=05918270db05d050d58ea345ca961968

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Musab Rasheed
Tera Sage
Tera Sage

Hello,

If you are fine with my response, Please hit like and mark my response as correct if that helps.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab