ADF Pipeline failing with an error saying column can be found

Jiby Jacob 65 Reputation points
2024-09-11T20:01:56.4766667+00:00

I have a pipeline that looks up a query to define the list of tables from source and usin for loop it should load data to Target Synapse pool but it is failing with following error on copy command.

ErrorCode=UserErrorSqlDWCopyCommandError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Column 'id' not found in SQL DW table Schema.[Table]',Source=Microsoft.DataTransfer.ClientLibrary,'

Column ID is present in source and target. I have another pipeline with similiar logic but it does work. ( different ADF and ADLS account and different source and source tables)

(Changed Schema name and table)

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,875 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,594 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 23,486 Reputation points
    2024-09-11T20:36:13.0233333+00:00

    Synapse is case-sensitive for column names in some scenarios. Check if the casing of the id column in the source and target tables matches exactly.

    Ensure that both the ADF lookup query and the copy activity are referring to the column with the correct casing.

    If the schema name or the table structure in the target differs slightly (e.g., different schema or column definitions), this could cause the issue. Make sure the schema structure in both environments is identical.

    Double-check the target schema, especially since this error mentions Schema.[Table]. Ensure the id column exists under the correct schema.

    If you're using a parameterized pipeline, ensure that the table schema and name passed to the Copy Activity or ForEach loop are correct and match the actual destination schema in Synapse.

    Verify that the pipeline is picking up the correct table list and columns from the lookup activity.

    Sometimes a data type mismatch between the source and target tables can lead to similar errors. Ensure that the data types for the id column are compatible between the source and target.

    If you're using a distributed table in Synapse, ensure that the id column is properly indexed and distributed across the nodes. Sometimes distributed tables can behave differently, especially if the distribution method (like hash distribution) isn't set up properly.

    Let me know if you need any further guidance on a specific part!


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.