Use of the Commit activity method interferes with the PRPC transaction model and may result in stale database records. Consider removing; In most cases, PRPC already does a commit at the end of the transaction
How to remove this Guardrail warning.
Any other activity we can use in place of Commit
2 Likes
@AbhishekC1725 You could consider using the OOTB Work- commitWithErrorHandling activity or wrap the commit method in your own activity that is then re-used everywhere. In any case, this shouldn’t be about not generating the guardrail warning - it should be about carefully considering if you need an activity and if / how you want to handle transactions and errors.
@BasRulesMatter! Thanks for clearing this.