Syed Hamza Raza Kazmi
08/15/2025, 9:58 AMjava.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: numeric field overflow Detail: A field with precision 38, scale 9 must round to an absolute value less than 10^29.kapa.ai
08/15/2025, 9:58 AMjava.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: numeric field overflow Detail: A field with precision 38, scale 9 must round to an absolute value less than 10^29. indicates that Airbyte is attempting to insert a value into a PostgreSQL NUMERIC column that exceeds the allowed range for the column's defined precision and scale. Specifically, for a column with precision 38 and scale 9, the maximum absolute value allowed is less than 10^29. If a value exceeds this, PostgreSQL will throw a "numeric field overflow" error. This issue can occur if: - The source data contains numbers larger than what the destination column can store. - Airbyte's automatic schema mapping sets the destination column's precision and scale, but the incoming data still exceeds those limits. This problem has been reported by other users as well, especially when syncing data with very large numeric values or when the source and destination systems have different numeric type handling. For example, one user reported that even after manually increasing the precision in the destination Postgres column, the sync still failed, suggesting that Airbyte's internal type mapping or the data itself may be the root cause. There is currently no documented way to override this behavior directly via the Airbyte UI, and manual changes to the destination schema may not be respected during syncs if Airbyte re-applies its own schema logic during normalization or typing/deduping steps. The error is also discussed in the context of MongoDB to Postgres syncs and other scenarios involving large numeric values or mismatched precision/scale settings between source and destination connectors. Users have asked how Airbyte derives the precision and scale, but there is no clear answer in the knowledge sources provided. The issue remains open and is recognized by the Airbyte team as a limitation or bug in the current handling of numeric types and schema inference in some connectors and sync modes [source](https://github.com/airbytehq/airbyte/issues/37310), [source](https://github.com/airbytehq/airbyte/issues/37380). In summary: The error is caused by a numeric value exceeding the allowed range for the destination column's precision and scale. This is a known issue in Airbyte, and there is no documented workaround other than ensuring your source data does not exceed the destination's numeric limits, or possibly adjusting your sync strategy to avoid problematic records. If you need to handle larger numbers, you may need to wait for a fix or enhancement from the Airbyte team, as manual schema changes may not be effective.