> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erstan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Exception Flagging

> Sweeps NetSuite for control exceptions and routes each one to an owner — follow-up tasks are created only after your approval.

> Sweeps NetSuite for control exceptions and routes each one to an owner — follow-up tasks are created only after your approval.

**A live exception queue where every flag gets an owner.**

Control exceptions rot when nobody owns them: the unapproved journal from last close, the bill sitting in pending approval for three weeks, the transaction edited after approval. This agent runs a continuous exception sweep over your NetSuite data with read-only SuiteQL — stuck approvals, stale drafts, post-approval edits, missing required fields, out-of-policy amounts — deduplicates against what it has already flagged in the conversation, and turns the queue into owned, routed NetSuite tasks once you approve the routing. Detection is read-only; task creation is its only write and always waits for you.

**Team:** Audit & Controls · **Type:** Agent

## What's included

### Pinned tools

* `er_ns_tasks_create`
* `er_suiteql_example_find`
* `er_suiteql_query_validate`
* `ns_getSuiteQLMetadata`
* `ns_runCustomSuiteQL`

### Recommended skills

* NetSuite Intelligence Library

### Starter prompts

* Run the standard sweep
* Stuck approvals only
* Edits after approval
* Add a custom rule
* Route the queue

## Trust and governance

This agent can take action in NetSuite through `er_ns_tasks_create` — and **every write is approval-gated**. Nothing is created, updated, or sent until a human approves it. Reads and analysis run without interruption.

All activity is captured in a full audit trail, agents use your existing NetSuite roles and permissions, and your data is never used to train models.

**Works with:** NetSuite
