# Sending error details in MFT event

**URL:** <https://techcommunity.softwareag.com/t/sending-error-details-in-mft-event/228168>\
**Category:** Forum\
**Tags:** Managed-File-Transfer\
**Created:** [June 28, 2020, 7:10am UTC](https://techcommunity.softwareag.com/t/sending-error-details-in-mft-event/228168 "2020-06-28T07:10:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vineet\_Singh4](https://avatars.discourse-cdn.com/v4/letter/v/a3d4f5/32.png) [@Vineet\_Singh4](https://techcommunity.softwareag.com/u/Vineet_Singh4)\
**Post date:** [June 28, 2020, 7:10am UTC](https://techcommunity.softwareag.com/t/sending-error-details-in-mft-event/228168/1 "2020-06-28T07:10:14Z")

</div>

I am using “Send Email” action for error handling in my active transfer events.  
How can I get error details in sendEmail action in any MFT event. .  
Below variable is not displaying error details in email.  
%the\_file\_error%

Is there any other variable which can get error details?

---

<div class="post-metadata">

**Author:** ![rmg](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@rmg](https://techcommunity.softwareag.com/u/rmg)\
**Post date:** [August 28, 2020, 7:41pm UTC](https://techcommunity.softwareag.com/t/sending-error-details-in-mft-event/228168/2 "2020-08-28T19:41:54Z")

</div>

Hi Vineet,

Does the getLastError not giving you enough error stack for this mft event handled from that event processing service?

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Mayank2](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/mayank2/32/755_2.png) [@Mayank2](https://techcommunity.softwareag.com/u/Mayank2)\
**Post date:** [September 1, 2020, 11:03am UTC](https://techcommunity.softwareag.com/t/sending-error-details-in-mft-event/228168/3 "2020-09-01T11:03:43Z")

</div>

Hi,

Try below formats in the email body in the event and let me know if it works-

{task\_errror}  
{task\_error\_types}  
{event\_execution\_id}

-M

---

<div class="post-metadata">

**Author:** ![Vineet\_Singh4](https://avatars.discourse-cdn.com/v4/letter/v/a3d4f5/32.png) [@Vineet\_Singh4](https://techcommunity.softwareag.com/u/Vineet_Singh4)\
**Post date:** [September 2, 2020, 11:44am UTC](https://techcommunity.softwareag.com/t/sending-error-details-in-mft-event/228168/4 "2020-09-02T11:44:41Z")

</div>

thanks Mayank. It worked.

---

<div class="post-metadata">

**Author:** ![Vineet\_Singh4](https://avatars.discourse-cdn.com/v4/letter/v/a3d4f5/32.png) [@Vineet\_Singh4](https://techcommunity.softwareag.com/u/Vineet_Singh4)\
**Post date:** [September 2, 2020, 11:46am UTC](https://techcommunity.softwareag.com/t/sending-error-details-in-mft-event/228168/5 "2020-09-02T11:46:07Z")

</div>

I was not calling any service in my event.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:44pm UTC](https://techcommunity.softwareag.com/t/sending-error-details-in-mft-event/228168/6 "2021-04-02T15:44:51Z")

</div>


