Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Stuck with Pivot Transformation - cannot be mapped to PivotKey input column error

$
0
0

Hi, I'm stuck with the Pivot Transformation and would appreciate if anyone can point me in the right direction.

I've got 4 incoming columns:

RetailerLineIDRetailerTariff DescriptionTariff Value
1Retailer ALevy0.0021
1Retailer ADiscount0.12
1Retailer AFixed daily charge1.4548
1Retailer AUncontrolled0.337

which I would like to display as follow:

RetailerLineIDRetailerLevyDiscountFixed daily chargeUncontrolled
1Retailer A0.00210.121.45480.337

I've setup my Pivot Transformation as follow:

RetailerLineID PivotUsage as 0

Retailer PivotUsage as 1

TariffDescription PivotUsage as 2

TariffValue PivotUsage as 3

I've defined the following output columns:

RetailerLineID

Retailer

Levy -  PivotKeyValue = Levy, SourceColumn = LinageID of Input Tariff Description

Discount - PivotKeyValue = Discount, SourceColumn = LinageID of Input Tariff Description

Fixed daily charge - PivotKeyValue = Fixed daily charge, SourceColumn = LinageID of Input Tariff Description

Uncontrolled - PivotKeyValue = Uncontrolled, SourceColumn = LinageID of Input Tariff Description

But I get the error message:

Error at Data Flow Task [Pivot [150]]: Output column "Levy" (369) cannot be mapped to PivotKey input column.

What am I doing wrong? Seems like there is nothing I can do to get rid of this error and as far as I know my configuration is correct. Have a missed anything?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>