Refusals
Every code a refused call can carry, when it happens and the way out, from the connector's own checks to the errors Entz itself returns.
When the connector cannot do what the agent asked, the call comes back as an error rather than a result. You see it in your client among the agent’s tool calls; the people in the document see nothing. The error holds the refusal as JSON, with its code, the index of the failing op in op when there is one, a message and data, followed by a line naming the guide entry that explains the way out:
{"code":"guard_mismatch","op":0,"message":"the block changed since it was read; their words win","data":{"h":"7be41d09","xml":"<paragraph id='2kx9q1.16' h='7be41d09'>Q3 ships the connector to every paid workspace.</paragraph>"}}Nothing landed. guide(items=["refusal.guard_mismatch"]) says how to recover.The connector’s instructions tell the agent to read that entry with the guide tool, which says how to recover. Most refusals mean a person got there first, and the way forward is the same each time: read what stands, keep their words, and work with them.
The connector’s refusals
Section titled “The connector’s refusals”These come from the connector’s own checks, before anything reaches Entz. A call refused this way changes nothing at all.
| Code | When | The way out |
|---|---|---|
guard_mismatch |
Someone changed the block after the agent read it (data.why is changed): data.h is its fingerprint now, data.xml the block as it stands and data.rev the revision now. Also a write-level ifRev that is no longer the tab’s revision, and a cell by position whose words changed, or whose table’s rows or columns did (data.why is table_moved, with each row’s cell words in data.cells). |
Keep their words: redo the edit against data.xml with ifHash set to data.h, or quote only the words to change. A cell whose table changed shape: count again against data.cells and resend with data.rev. Never resend with force. |
missing_guard |
A whole-block replace or delete, or a whole cell’s replace, came without a guard. | Add ifHash for one block, or ifRev for the revision of the read that showed the blocks (a write’s answer stands in only for blocks that write made, since it already counts what people did before it). force only when you asked the agent to overwrite whatever is there. |
find_none |
The quoted words are not in the document as written, or nth is past the last match (data.count). |
Quote the words as a read shows them: no Markdown, and never across two blocks, a line break or a chip. Within a cell, data.cellText is the cell’s words now. A search for a few of them shows what stands. If they are truly gone, the agent is told to say so rather than edit somewhere else. |
find_ambiguous |
The quoted words occur more than once (data.count). |
Add nth, within or parentId, or quote more words. |
block_gone |
The block was removed. data.by names the agent’s own session when its own write removed or replaced it (data.why is swapped_target when an earlier op of the same call did); without it, a person did. |
After its own replace, the agent uses the ids from that answer. A block a person removed stays removed: the agent is told not to create it again. |
unknown_id |
No block, tab or comment has that id, or a reference is not a document id or link. | Use the full id, expanding a read’s .N with the last full prefix above it. The tabs and comments tools list tab and comment ids. |
anchors_affected |
The op would remove every word an open comment thread hangs on (data.threads). |
Narrow the edit so some of those words stay, or ask in the thread whether the passage should go. Only when a person asked for it: add "allowDetach": true to the op, which leaves the thread detached (the agent is told to say so), or resolve the thread first. |
last_block |
The op would delete a tab’s last block. | Replace that block instead. |
last_tab |
The main tab was to be removed, but it is the document itself. | To start over, replace its blocks. The document goes only when its owner deletes it in Entz. |
too_many |
More than 64 ops in one call (data.max). Also a comment past a thread’s or a document’s limit, below. |
Split the write, a section per call. |
too_large |
An answer past 400,000 characters, or a call’s Markdown or ops past 1,000,000. Also a picture past the server’s limit, or past 64 MB. | Read less at once (an outline, a view, a search, the changes since a rev; export one tab), or split the write. For a picture, use a smaller copy. |
file_none |
upload names a file that is not in the uploads folder. data.files lists the files that are. |
Use a name from data.files, or put the picture in the folder first (where it is). |
outside_uploads |
upload names a file outside the uploads folder: an absolute path, .., or a link that leads out of it. |
Copy the picture into the uploads folder, then ask again. |
not_image |
The file is not a PNG, JPEG, GIF or WebP picture, judged by its first bytes. | Save the picture in one of those formats. |
no_storage |
The picture is over 256 KB, and the server stores no pictures that large. | Use a smaller or compressed copy, 256 KB or less, which goes inside the document. |
upload_failed |
The server’s storage refused the picture, or did not answer. | Try again. If it keeps failing, add the picture in the app. |
upload_gone |
A write cites a picture of 256 KB or less that the connector no longer holds: it restarted, or 64 newer pictures came after it. | The agent uploads the file again and cites the new src. |
cell_none |
A cell position past the table’s edge. data holds its rows, its cols and the header row’s words, columns. |
Count again, or read the table with view. |
shape_mismatch |
The op does not fit the blocks: as: "text" on a block without text or on a cell of several blocks, blocks replaced together from different lists, blocks inside cells moved, a table put inside a cell, a cell target that names something other than a table, a cell’s or a row’s id used as a block (then data.target names the cell by position), or as: "text" changing words that hold a chip or a line break (data.problem is chip_inside; a find aimed at the words around it works). |
Follow the message. |
bad_move |
A move’s place is one of the blocks moved, a block inside a table, or a cell. | Pick another place. |
bad_request |
The call is malformed, and the message names what is wrong: a chip token without an entry in blocks or an entry without a token, a date not written YYYY-MM-DD, a dropdown without options, a block kind entz lacks, ifHash beside quoted words, or an action missing what it needs. As in Claude Docs, data.problem says how (unknown_key, required, type or enum), data.at and data.issues[].path say where, from the call’s arguments, and data.expected says what fits; issues lists every one, with a hint for the Claude Docs keys entz lacks (caseSensitive, pattern). |
Fix every issue and resend the call; the guide’s index topic has the grammar. |
rev_expired |
The connector no longer holds that revision. It keeps the newest 256 for each tab, and starts again after a restart, or after closing a document left unused for 10 minutes. | Read the outline and continue from its revision. |
access |
The agent cannot open the document: it keeps to its members and the agent’s identity is not one, or the id is wrong, or the document was deleted. | The document’s owner opens Access… and turns on Anyone with the link, with Edit for the agent to write. People can also be added by email there, but the agent’s identity has no email. |
internal |
The document refused the change for a reason of its own, which the message gives, or the connector failed in a way it cannot name. | Read the outline and try once more. If it happens again, the agent is told to tell you. |
Errors from Entz
Section titled “Errors from Entz”Some calls are refused by Entz itself rather than by the connector: a comment, a tab change, or an edit on its way to the server. These keep Entz’s own code, and the guide has an entry for each.
| Code | When | What to do |
|---|---|---|
not-member |
The agent’s identity may not do this in the document: the link let it in to view, so it may not comment or edit; or to comment, so it may not edit; or it was removed. Adding, renaming, moving and removing tabs need Edit too. | Under Access…, give the link the permission the agent needs (Edit to write, Comment to comment), then restart the connector. Members keep the permission they joined with, and a fresh start joins again with the new one. |
rate-limited |
A comment or a tab change came too soon after other changes, and Entz asks the writer to wait. | Wait a moment and send it again. An edit held back this way is not refused: its answer says "synced": false with "waiting": "rate-limited", and the connector sends it by itself. |
too-large |
One write carried more than Entz takes at once (1 MiB). | Write the content in smaller parts. |
quota |
The connector’s identity has created as many documents and tabs as Entz allows an identity that has not signed in: 50, where a document with 20 tabs takes 21. | Restart the connector, which gives it a fresh identity. |
rejected |
Entz refused the call for another reason, which the message names, such as a tab name over 200 characters. A first connection that failed says connect failed here too. |
Follow the message. For a failed connection, check your network and try again: the next call tries a new connection. |
not-found, archived, unauthorized, incompatible, read-only, bootstrap-failed, outdated, closed |
The document is gone, archived or loading again; the token or the call is one Entz does not accept; or the server runs another version of Entz. | The guide’s entry for each says what to do, which is usually to try once more or to tell you. |
disconnected, timeout |
The connection to Entz dropped, or a call or the first connection took too long. | Try again. A timed-out call may have landed, so the agent reads what stands first. An edit made meanwhile is not refused: its answer says "synced": false with what it waits on, and it goes up once the connection is back. |
The connector names two of Entz’s refusals as Claude Docs does, and checks them before asking Entz:
| Code | When | What to do |
|---|---|---|
row_too_large |
A comment over 4,096 bytes (data.length, data.max). |
Shorten it, or say the rest in a reply. |
too_many |
A thread that already has 100 comments, or a document with 1,000 threads, resolved ones included (data.max). |
Answer in another thread, or tell you. |
An edit that Entz refuses for good (not-member, too-large, rejected, quota, unauthorized, not-found) has already been applied to the connector’s copy of the document, although nobody else ever sees it. The connector drops that copy, and the next call opens the document afresh from what Entz holds; Troubleshooting walks through a refused role.