Flow designer workflow error: cannot convert null to an object

CarolMa6
Tera Expert

Hi, 

 

what am I missing in this flow? The workflow is not triggering the related SCTASK because of the "cannot convert null to an object" error 

 

see below - 

CarolMa6_0-1754999807910.png

CarolMa6_1-1754999829626.png

Regards 

CarolMa

 

 

1 ACCEPTED SOLUTION

SANDEEP28
Mega Sage

@CarolMa6 Use below scripts. Don't use getDisplayValue() for date type of field. It is giving undefined value . I tried below script in PDI and it worked.

 

var date = fd_data._1__get_catalog_variables.termination_date;
var gdt = new GlideDateTime(date + " 00:00:00");
gdt.addSeconds(54000);
return gdt;

  

  If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

View solution in original post

11 REPLIES 11

@SANDEEP28 

see below error how did you test this 

CarolMa6_0-1755084949453.png

 

SANDEEP28
Mega Sage

@CarolMa6 Did you copy code properly? Check the variable name.

 

Share your flow screenshot here