# Try and Catch

**URL:** <https://community.automationedge.com/t/try-and-catch/9792>\
**Category:** Process Studio\
**Created:** [June 15, 2023, 10:09am UTC](https://community.automationedge.com/t/try-and-catch/9792 "2023-06-15T10:09:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![samach008](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@samach008](https://community.automationedge.com/u/samach008)\
**Post date:** [June 15, 2023, 10:09am UTC](https://community.automationedge.com/t/try-and-catch/9792/1 "2023-06-15T10:09:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jane](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Jane](https://community.automationedge.com/u/Jane)\
**Post date:** [June 19, 2023, 9:24am UTC](https://community.automationedge.com/t/try-and-catch/9792/2 "2023-06-19T09:24:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![samach008](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@samach008](https://community.automationedge.com/u/samach008)\
**Post date:** [June 20, 2023, 8:34am UTC](https://community.automationedge.com/t/try-and-catch/9792/3 "2023-06-20T08:34:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![suraj.kolhe](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@suraj.kolhe](https://community.automationedge.com/u/suraj.kolhe)\
**Post date:** [June 20, 2023, 10:37am UTC](https://community.automationedge.com/t/try-and-catch/9792/4 "2023-06-20T10:37:40Z")

</div>

Hi Satyam,

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

Thanks, Suraj

---

<div class="post-metadata">

**Author:** ![samach008](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@samach008](https://community.automationedge.com/u/samach008)\
**Post date:** [June 20, 2023, 1:54pm UTC](https://community.automationedge.com/t/try-and-catch/9792/5 "2023-06-20T13:54:18Z")

</div>

[UseCases.zip](https://community.automationedge.com/uploads/short-url/wzbZBhOOytEpDraXrkZRBOGIw3U.zip) (81.4 KB)

---

<div class="post-metadata">

**Author:** ![wllmdjngh](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/wllmdjngh/32/952_2.png) [@wllmdjngh](https://community.automationedge.com/u/wllmdjngh)\
**Post date:** [December 1, 2023, 11:16pm UTC](https://community.automationedge.com/t/try-and-catch/9792/6 "2023-12-01T23:16:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jane](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Jane](https://community.automationedge.com/u/Jane)\
**Post date:** [December 4, 2023, 5:36am UTC](https://community.automationedge.com/t/try-and-catch/9792/7 "2023-12-04T05:36:58Z")

</div>

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.
