Resolving Snowflake Table Access Issues in Azure Data Factory

Bathini Harshitha 345 Reputation points
2024-10-04T10:21:02.9466667+00:00

What could be the reason for a "KeyNotFoundException" when accessing newly created Snowflake tables from ADLS via Azure Data Factory, and how can it be resolved?

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,432 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bathini Harshitha 345 Reputation points
    2024-10-04T10:22:29.1+00:00

    The "KeyNotFoundException" error when accessing newly created Snowflake tables from Azure Data Lake Storage (ADLS) via Azure Data Factory is likely due to the use of the "float" data type in the Snowflake table schema. This error does not occur with older tables, indicating that the connector and linked service are functioning correctly.

    To resolve this issue, modify the Snowflake table schema to use the "decimal" data type instead of "float". This change should allow the data to be accessed without errors.

    Steps to Resolve: 1. Modify the Snowflake table to use "decimal" data type for any columns currently defined as "float". 2. Ensure your Azure Data Factory pipeline settings are updated to match the new schema.

    For more detailed guidance, refer to the following documentation: - Azure Data Factory Copy Activity - Integrating Snowflake with Azure Data Factory

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    Please do not forget to "Accept the answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.