Azure Data Factory copy data activity is repeating values in Sink

Dawn Fenstermacher 0 Reputation points
2023-10-04T21:59:31.1233333+00:00

I have a stored procedure in SQL 2016 that joins several tables, runs some basic calculations, and has a case statement. There are 8 columns total in my output.

I have created a simple Copy Data pipeline in ADF where I execute the stored procedure and copy the output to DB2.

All of my data types match.

In the SINK data, the columns that are a result of either a calculation or the case statement repeat their values.

For example, there is an invoice_date column that is unique for each row, but the net_price column, which is a calculated field from the stored procedure is repeated throughout the data set with the same value, per ID column.

For the next new column ID, the invoice_date column will be unique, but the calculated column of net_price will repeat itself with a value within this ID group.

The stored procedure does not have any grouping within itself.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,494 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,447 questions
{count} votes

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.