Diagnosing common dynamic table refresh issues¶
This topic addresses solutions for troubleshooting dynamic tables that don’t refresh as expected:
Some actions might be restricted due to limitations on using dynamic tables or if you don’t have the necessary privileges. For more information, see Dynamic table limitations and Dynamic table access control.
If you encounter an issue not listed here, contact Snowflake Support.
Issue |
Solution |
---|---|
My dynamic table is using full refresh instead of incremental refresh. |
A dynamic table’s actual refresh mode is determined at creation time
and is immutable afterward. If not specified explicitly, the refresh mode defaults to For consistent behavior across Snowflake releases, explicitly set the refresh mode on all dynamic tables. For
example, if you want your dynamic tables to refresh only incrementally, you must explicitly set the refresh mode to
Using a role with the necessary privileges, you can verify the refresh mode using one of the following methods:
|
My dynamic table’s incremental refresh is slow. |
A dynamic table’s refresh performance relies on specific assumptions about the workload or data it’s handling. Use Refresh History to view variance or spot outliers:
|
My dynamic table is running an empty refresh but I am seeing a cost. |
Refreshes that produce zero net new rows (that is, zero rows added, updated, or deleted) consume warehouse resources when they’re associated with changes in any of the upstream objects referenced by the dynamic table. For example, if the associated virtual warehouse is suspended and no changes in base objects are identified, the suspended virtual warehouse doesn’t resume and no credits are consumed. This is referred to as a NO_DATA refresh. Conversely, if changes are identified, the virtual warehouse is automatically resumed to process the updates, which consumes warehouse resources even if the net result is zero rows applied to the dynamic table. If you’re seeing a cost but you haven’t made any changes to your dynamic table, it might be due to a change in your source table. You can use the Refresh History tab in Snowsight to check if virtual warehouse credits were consumed:
For more information, see Understanding cost for dynamic tables. |
My dynamic table is reinitializing. |
Your dynamic table might be reinitializing due to one of the following reasons:
For general information about initialization, see Understanding dynamic table initialization. |