

# Troubleshoot the ODBC 4.x driver

## Connection errors
<a name="odbc-v4-driver-connect-errors"></a>

For a workgroup configuration lookup error, check the workgroup name, Region, credentials, and `athena:GetWorkGroup` permission.

For an unrecognized engine error, use `DuckDB` or `Athena engine version 3` as the `EngineVersion` value, or connect to a workgroup that reports one of these engine versions.

For a fetcher validation error, select a fetcher supported by both the engine and result storage. On DuckDB, also check for enabled legacy fetcher toggles in the DSN or connection string.

## Cancellation and result read errors
<a name="odbc-v4-driver-cancel"></a>

Cancellation with `SQLCancel` is best effort. It does not interrupt an active `SQLFetch`; that fetch runs to completion.

After a result read or decode failure is returned to your application, subsequent fetch and data calls return the failure. Close the cursor and execute the query again to obtain a new result set.