Skip to content

Edit was rejected

After Apply fails, read the database cause before correcting the staged edits that TableAI retains.

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.

  1. Open View Details on the notification.
  2. Read the database message and code using the error-code guide.
  3. Check whether rollback was confirmed.
  4. Compare the staged changes with the constraint or column named in the error.

For an approval prompt before execution, use query blocked by guardrails.

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.

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.

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:

  1. Reconnect if necessary.
  2. Read the affected rows from the database.
  3. Compare them with the intended changes.
  4. Retry only the work still required.

Include the database code, constraint name, and rollback status in a support report. Use demo values to reproduce the failure without sharing private rows.