Thank you for posting your query!
The error SqlColumnNameNotExist
occurs because the column reported_data
does not exist in the target table covid_reporting.cases_and_deaths
. Based on your table schema, the correct column name is reported_date
.
Steps to Resolve:
Verify Column Mapping in ADF - Open the Copy Data activity. Navigate to the Mapping tab. Ensure the source column is mapped to reported_date
, not reported_data
.
Check Source Data - Ensure the source dataset contains a column named reported_date
. If the source column is incorrectly named reported_data
, consider renaming or transforming it before copying.
Validate SQL Table Schema - Run the following query in Azure SQL to confirm the correct column name:
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'covid_reporting'
AND TABLE_NAME = 'cases_and_deaths';
Refresh the Sink Dataset Schema in ADF - Open ds_sql_cases_and_deaths
(your sink dataset). Click "Preview Schema" to refresh the structure. Manually update the column mapping if needed.
Republish & Rerun the Pipeline - After updating the mapping, publish your changes and rerun the pipeline.
By addressing these areas, you can resolve the SqlColumnNameNotExist
error and ensure seamless data ingestion into SQL.
I hope this information helps. Please do let us know if you have any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.