Inbound action script is not handling exceptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 07:42 AM
Hi Team,
Its a bit high priority and provide your solution.
Written inbound action, without exceptions code is working fine, but if I write exceptions and evenQueue, it is not handling the exceptions and inbound action is not processed. Please check below code of mine and provide your solutions as soon as possible.
******Code*************
************end**************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 08:00 AM
Hi ,
Please re-share complete code with exception applied and also did you check the email log details, any catch there.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 08:18 AM
Hello ,
you may consider is wrapping your critical logic in try-catch blocks. If an unexpected error occurs, the catch block can log and append the error to excp, ensuring that your code doesn’t fail silently. For example:
try {
// Your existing logic (reading email, attachments, etc.)
} catch (error) {
excp += "Error encountered: " + error.message + "\n";
}
Then, after your processing, you can decide whether to queue an error event based on whether excp has any text.
please mark it helpfull if it's help you
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
Thank you !!
sundaram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 08:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2025 09:03 AM
Fetching error through ${even.parm1} in notification body text