Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Transform map & Transform script related issue

RadhaK432361738
Tera Contributor

Hello, 

I have a doubt related to transform script.

(function runTransformScript(source, map, log, target  ) {
    // Add your code here
    gs.log("Admin department is no more");
   if(source.u_department=="Admin"){
    log.info("Admin department is no more");
        gs.log("Admin department is no more  1111");
    ignore=true;
    return;
   }
})(source, map, log, target);
 //My gs.log is working but log.info is not working  
 

I have import excel data-> transform map(map the fields correctly)->written transform script -> transform->run transformation-> In transformation history there is no error but in import log nothing is visible.

What can be the reason and how I tackle with this issue?? 
1 REPLY 1

miftikhar20
Kilo Patron

Hi @RadhaK432361738 ,

 

One possible reason could be the system property glide.importlog.log_to_table. By default, this property is set to false, which means information-level logs generated using log.info() are not written to the import_log table.

image 1.PNG

Import sets properties • Zurich Data and Automation • Docs | ServiceNow

 

That might explain why gs.log() is visible in the system logs, but log.info() does not appear in the Import Log.

Please set "glide.importlog.log_to_table" property as true. After updating the property, rerun the transform and check the Import Log again.

 

If my response helped, please mark it as the accepted solution so others can benefit as well.

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.