ignore true for transform map

Giri6
Tera Expert

For trasnform map, if you have  onbefore with order 100  with ignore=true and  one more  onbefore with order of 200 with GlideRecord code to update the record, it seems order 200 onbefore not getting executed. What is the reason? Appreciate it.

I am assuming ignore=true, does not have any effect in runscript of trasnform map

1 REPLY 1

Allen Andreas
Administrator
Administrator

Hi,

Once the action has been asserted as ignore = true, that row is completely ignored and the transform map process moves to the next row. So there's no reason to continue evaluating script when the action was set to ignore.

Same as if you had abort action in business rules, no other business rules will run.

Please see documentation for reference:

Variable name: ignore

Type: Boolean

Description: When set to true, skips or aborts the current import action. In onStart scripts, this variable aborts the entire transformation process. In onBefore scripts, this variable only skips the current row being transformed.

Example:
if(source.u_user_name.nil()){
   ignore = true;
}

https://docs.servicenow.com/bundle/quebec-platform-administration/page/script/server-scripting/refer...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!