AnsweredAssumed Answered

Run_JavaScript Operator Not working

Question asked by kgaurav.contractor on Apr 16, 2018
Latest reply on Apr 16, 2018 by kgaurav.contractor

Hi All,

I am trying to read from a log file and calculating the count for Error , but when i do the calculation in script it gives me an error ie  TypeError: Cannot read property "length" from null (#4).

 

Source Code
var count = Process.fileContents.match(/ERROR/g).length;


Process.errorCount = count;

Outcomes