Error: Row Size Too Large
Issue
Syncs fail with the following error:
Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
Environment
Connector: MySQL
Resolution
To resolve this issue, do the following:
- In Fivetran, go to your MySQL connection page.
- In the top right corner, set the Enabled toggle to OFF to pause the connection.
- Select the Schema tab.
- Identify unnecessary columns that may significantly increase row size, such as large text, binary, or JSON columns, then deselect them to exclude them from the sync.
- Click Save changes.
- Re-enable the connection by setting the Enabled toggle to ON.
- Wait for the sync to run again, or click Sync in the top right.
Cause
This issue occurs when the combined size of a row exceeds the MySQL InnoDB row size limit of 8,126 bytes. The error is caused by the total row size, not necessarily by a single column.
MySQL enforces this limit at the database level. As a result, Fivetran cannot sync records where the combined column data exceeds the maximum supported row size. Sync logs do not identify which columns contribute most to the row size. For more information, see the MySQL InnoDB Limits documentation.