# Guradrail Warning

**URL:** <https://forums.pega.com/t/guradrail-warning/4159>\
**Category:** Pega-as-a-Service\
**Tags:** devops, pega-platform\
**Created:** [March 16, 2023, 7:36am UTC](https://forums.pega.com/t/guradrail-warning/4159 "2023-03-16T07:36:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [March 16, 2023, 7:36am UTC](https://forums.pega.com/t/guradrail-warning/4159/1 "2023-03-16T07:36:04Z")

</div>

How to handle this Guradrail warning,

“Use of the WriteNow option in the Obj-Save ,Obj-Delete activity methods interferes with the PRPC transaction model and may result in stale database records. Consider allowing PRPC to commit the record when the transaction completes.”

I am using activity to delete Case. And Steps are:-

1. Page-New

2. Obj-Open

Lock checkbox checked

ReleaseOnCommit checkbox checked

1. Obj-Delete

Remove checkbox checked  
Immediate checkbox checked

1. call commit

2. Page-Remove

---

<div class="post-metadata">

**Author:** ![ArulDevan](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/aruldevan/32/23602_2.png) [@ArulDevan](https://forums.pega.com/u/ArulDevan)\
**Post date:** [March 16, 2023, 8:38am UTC](https://forums.pega.com/t/guradrail-warning/4159/2 "2023-03-16T08:38:59Z")

</div>

Hi @AbhishekC1725: If you select the checkbox Immediate in a Obj-Delete, you will have this guardrail warning. If you have a commit step, Immediate you can uncheck Immediate checkbox. Instead of Commit, please try to use commitWithErrorHandling if this is a Work- instance. If you are calling this as part of flow, you can ignore the commit too.

Thanks.

---

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [March 16, 2023, 8:59am UTC](https://forums.pega.com/t/guradrail-warning/4159/3 "2023-03-16T08:59:00Z")

</div>

@ArulDevan Hi !! I am run this activity as standalone

---

<div class="post-metadata">

**Author:** ![ArulDevan](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/aruldevan/32/23602_2.png) [@ArulDevan](https://forums.pega.com/u/ArulDevan)\
**Post date:** [March 16, 2023, 9:19am UTC](https://forums.pega.com/t/guradrail-warning/4159/4 "2023-03-16T09:19:09Z")

</div>

Hi @AbhishekC1725: Thanks. Then you can use commit / commitWithErrorHandling based on your class context. When using either of this, you can unselect Immediate option in Obj-Delete.

Thanks.

---

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [March 16, 2023, 9:25am UTC](https://forums.pega.com/t/guradrail-warning/4159/5 "2023-03-16T09:25:40Z")

</div>

@ArulDevan Thanks It works
