Guradrail Warning

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

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.

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

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.

@ArulDevan Thanks It works