Script in Map Function not producing desired results

Document created by pete_mccoy1.3055586893899446E12 Employee on Aug 2, 2013Last modified by harvey_melfi on Mar 1, 2016
Version 2Show Document
  • View in full screen mode
Groovy script in map function was not returning correct values based on whether or not a particular piece of inbound data was empty.
Script was as follows:
if (ErrorMessage == NULL)
{
c_LineNumber = LineNumber;
c_Username = Username;
c_ProductID = ProductID....

 

The correct format for checking if the inbound element is empty is as follows;

 

if (ErrorMessage == '')
{
c_LineNumber = LineNumber;
c_Username = Username;
c_ProductID = ProductID......

 

Instead of the NULL, the comparison should be against to single quote marks.

Attachments

    Outcomes