---
sourceDocument: Australia API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/api-reference

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Abort database actions

# Abort a database action {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
You can use a before business rule script to cancel or abort the current database action using the current.setAbortAction(true) method.

If the before business rule is executed during an insert action, and a condition in the script calls current.setAbortAction(true), the new record stored in current is not created in the
database.
**Related reference**   

* [GlideRecord - setAbortAction(Boolean b)](https://servicenow-prod.fluidtopics.net/kEnhxKeOH9ksdDjzH~63~A#r_GlideRecord-setAbortAction_Boolean "Sets a flag to indicate if the next database action (insert, update, delete) is to be aborted.")
* [Scoped GlideRecord - setAbortAction(Boolean b)](https://servicenow-prod.fluidtopics.net/A8srNukp_c6TJp_LS_KZMg#r_ScopedGlideRecordSetAbortAction_Boolean "Sets a flag to indicate if the next database action (insert, update, delete) is to be aborted. This is often used in business rules.")

