# Alert when in purepath have exception or error message

**URL:** <https://community.dynatrace.com/t/alert-when-in-purepath-have-exception-or-error-message/19443>\
**Category:** Alerting\
**Tags:** distributed-traces-classic, problems-classic\
**Created:** [February 6, 2019, 7:36am UTC](https://community.dynatrace.com/t/alert-when-in-purepath-have-exception-or-error-message/19443 "2019-02-06T07:36:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AskMe-Solutions](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/askme-solutions/32/33154_2.png) [@AskMe-Solutions](https://community.dynatrace.com/u/AskMe-Solutions)\
**Post date:** [February 6, 2019, 7:36am UTC](https://community.dynatrace.com/t/alert-when-in-purepath-have-exception-or-error-message/19443/1 "2019-02-06T07:36:13Z")

</div>

Hi everyone,

I want to know how to setting to alert when in the purepath/transaction have exception, i.e. when have message “lock” is in transaction the dynatrace is send alert to operation team. It’s can do it ?

 ![19651-2019-02-04-154625-1.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/d/ed61ca47317ba600730e192cf2c93c7ef063e299.png)

Thank you,

---

<div class="post-metadata">

**Author:** ![nj\_njoku](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nj_njoku/32/13710_2.png) [@nj\_njoku](https://community.dynatrace.com/u/nj_njoku)\
**Post date:** [February 6, 2019, 5:26pm UTC](https://community.dynatrace.com/t/alert-when-in-purepath-have-exception-or-error-message/19443/2 "2019-02-06T17:26:26Z")

</div>

Hi,

You can setup custom handled exceptions for the RTE Service under **RTE Service Settings → Error detection** or create custom error rules using request attributes. You can then setup either a custom alert for this or configure your anomaly detection rules to create a problem whenever this error occurs. You should then configure an alerting profile and problem notification rules to alert you on this.

See links below

[Custom error rules using request attributes](https://www.dynatrace.com/news/blog/improved-failure-detection-functional-errors-based-request-attributes/)

[Custom handled exceptions](https://www.dynatrace.com/support/help/monitor/transactions-and-services/service-monitoring/how-do-i-configure-service-error-detection/#expand-1144custom-handled-exceptions)

[Alerting profile](https://www.dynatrace.com/support/help/monitor/problems/problem-notification-and-alerting/how-can-i-filter-problem-notifications-with-alerting-profiles/)

Hope This Helps

NJ
