Edit was rejected
After Apply fails, read the database cause before correcting the staged edits that TableAI retains.
Symptoms
Section titled “Symptoms”The save notification can begin with:
Rolled back—no changes were saved.Failed to save changes.The accompanying database message can identify a duplicate key, required value, invalid type, or missing permission.
Quick checks when an edit was rejected
Section titled “Quick checks when an edit was rejected”- Open View Details on the notification.
- Read the database message and code using the error-code guide.
- Check whether rollback was confirmed.
- Compare the staged changes with the constraint or column named in the error.
For an approval prompt before execution, use query blocked by guardrails.
A constraint rejects the value
Section titled “A constraint rejects the value”| Cause | Correction |
|---|---|
| Duplicate primary or unique key | Find the existing row and decide which record should use the key. |
| Missing required value | Supply a value or use the column’s default when appropriate. |
| Foreign key violation | Check that the referenced row exists. |
| Check constraint violation | Compare the value with the table’s validation rule. |
Keep constraints in place while correcting the data. Removing them can permit invalid rows.
For duplicate keys, follow PostgreSQL 23505 or MySQL 1062.
The column type or account rejects the change
Section titled “The column type or account rejects the change”Check the value against the destination column’s type. Use the grid’s explicit actions for NULL and DEFAULT; typing those words produces text. See special values.
For a permission error, request only the INSERT, UPDATE, or DELETE access that the operation needs. A readable table or replica may not accept writes. See PostgreSQL permissions or SQLite write access.
The row cannot be identified
Section titled “The row cannot be identified”A save can stop before execution if an edited or deleted row cannot be identified uniquely. Include the table’s primary-key columns in the query and locate the intended row again.
Use Preview SQL to check the target before applying the revised edit. For restrictions that prevent staging altogether, see read-only results.
Confirm the outcome before retrying
Section titled “Confirm the outcome before retrying”Rolled back—no changes were saved. confirms that the failed transaction saved no changes. Correct its cause before applying the retained edits again.
When rollback is not confirmed, a timeout or connection loss does not prove that nothing changed:
- Reconnect if necessary.
- Read the affected rows from the database.
- Compare them with the intended changes.
- Retry only the work still required.
Still stuck
Section titled “Still stuck”Include the database code, constraint name, and rollback status in a support report. Use demo values to reproduce the failure without sharing private rows.