# SLA for service rest not working

**URL:** <https://forums.pega.com/t/sla-for-service-rest-not-working/5043>\
**Category:** User Experience\
**Tags:** performance, java-and-activities, communications-and-media, decision-management, 8-5, decisioning-architect, system-administration, user-experience, case-management\
**Created:** [September 15, 2023, 10:05am UTC](https://forums.pega.com/t/sla-for-service-rest-not-working/5043 "2023-09-15T10:05:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PrasadN16719109](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@PrasadN16719109](https://forums.pega.com/u/PrasadN16719109)\
**Post date:** [September 15, 2023, 10:05am UTC](https://forums.pega.com/t/sla-for-service-rest-not-working/5043/1 "2023-09-15T10:05:23Z")

</div>

Hi All,

I have enabled SLA for service rest for our CDH application. When i tested the service with date format exception, it is not picking the fallback activity which i have traced in the tracer.

Please let me know if i have done something wrong.

Maximum duration for service activity 4000

Maximum consecutive violations 3

Retry interval (seconds) 10

---

<div class="post-metadata">

**Author:** ![RaghuShankhawaram](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@RaghuShankhawaram](https://forums.pega.com/u/RaghuShankhawaram)\
**Post date:** [September 22, 2023, 11:26am UTC](https://forums.pega.com/t/sla-for-service-rest-not-working/5043/2 "2023-09-22T11:26:11Z")

</div>

@PrasadN16719109 Can you elaborate on your usecase and which service are you enabling the Service SLA’s?

---

<div class="post-metadata">

**Author:** ![B.Puneet](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/b.puneet/32/22255_2.png) [@B.Puneet](https://forums.pega.com/u/B.Puneet)\
**Post date:** [March 9, 2024, 10:43am UTC](https://forums.pega.com/t/sla-for-service-rest-not-working/5043/3 "2024-03-09T10:43:13Z")

</div>

@PrasadN16719109 I guess the SLA works only when the activity does not respond at all. But in your case you are throwing an error I believe. So please make the activity wait for that much time and then if you test it it should work.
