Try and Catch

For try and catch plugin, the catch converts the datatype to string for success target hop. I solved it using rename fields, but I randomly get error for rename fields showing couldn’t find field in a row even if its present.

1 Like

Hi! Satyam,

  1. Check the spelling of the field name.
  2. Make sure that the field is present in the current row.
  3. Check the value of the field to make sure that it is not empty.
  4. Make sure that you are using the latest version of the try and catch plugin.
  5. Check the logs for any errors that may be occurring.
  6. Try using a different field name.
2 Likes

Hello Ma’am,

I’m getting the error randomly. Sometimes it executes the workflow and I’m getting the output but 3/10 chance it gets an error in rename fields.

1 Like

Hi Satyam,

It would be great if you could attach workflow here. I’ll review the same and get back to you.

Thanks, Suraj

2 Likes

UseCases.zip (81.4 KB)

2 Likes

Hi Samach008. Did you get any reply on this request?
Have the same issue. Made sure that the fields are always present during the steps but after the Catch step, it gives the error that it cannot find the field.
Also, on row is getting to catch but output of catch is multiple rows.
Try/Catch is tough to manage. Would be great to have hints to look out for when using this error management. Results and Performance. We have WF that last 2 minutes to pass the Catch step and save as well. Last an eternity.

1 Like

Hi! Satyam,

The Rename Fields step can sometimes cause a problem especially for data fields. Make sure the format of the input string is the same you use in the Rename Fields step (in this case dd-MM-yyyy). If it still gives a problem, please use a Modified Java Script Step (Str2date function) in between to make the conversion.

1 Like