Skip to main content

warnings

Creates, updates, deletes, gets or lists a warnings resource.

Overview​

Namewarnings
TypeResource
Idfivetran.connections.warnings

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
schemastringThe destination schema name. Omitted for warnings that are not scoped to a specific table. (example: my_schema)
tablestringThe destination table name. Omitted for warnings that are not scoped to a specific table. (example: my_table)
warningsarrayList of warnings for this table

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectconnection_idRetrieve all active warnings for a connection, grouped by destination table. Each warning includes a code, message, error details, and creation timestamp.
dismissdeleteconnection_id, warning_typeDismiss all active warnings of a specific type for a connection. Requires the warning type to be registered in the warning type registry.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
connection_idstringThe unique identifier of the connection. Retrieve it from the id field in the [List All Connections](https:​//fivetran.com/docs/rest-api/api-reference/connections/list-connections) response, or from the id field returned when you [Create a Connection](https:​//fivetran.com/docs/rest-api/api-reference/connections/create-connection).
warning_typestringThe warning type to dismiss (e.g., 'resync_table_warning', 'type_coercion_to_null_warning')

SELECT examples​

Retrieve all active warnings for a connection, grouped by destination table. Each warning includes a code, message, error details, and creation timestamp.

SELECT
"schema",
table,
warnings
FROM fivetran.connections.warnings
WHERE connection_id = '{{ connection_id }}' -- required
;

DELETE examples​

Dismiss all active warnings of a specific type for a connection. Requires the warning type to be registered in the warning type registry.

DELETE FROM fivetran.connections.warnings
WHERE connection_id = '{{ connection_id }}' --required
AND warning_type = '{{ warning_type }}' --required
;