如何在 Visual Studio ssdt 中修复 'The input column specified was not found in the input column collection'

how to fix 'The input column specified was not found in the input column collection' in Visual Studio ssdt

我正在尝试在 Visual Studio ssdt 中执行 ETL。但在派生列转换编辑器中输入派生列名称的表达式时出错。

我试过更改派生列名称和表达式

错误的屏幕截图

我得到的错误是 -

标题:微软Visual Studio

Error at ETL 1 [Derived Column [62]]: Attempt to find the input column named "Units_Sold" failed with error code 0xC0010009. The input column specified was not found in the input column collection.

Error at ETL 1 [Derived Column [62]]: Attempt to parse the expression "Units_Sold*Sale_Price" failed and returned error code 0xC00470A2. The expression cannot be parsed. It might contain invalid elements or it might not be well-formed. There may also be an out-of-memory error.

Error at ETL 1 [Derived Column [62]]: Cannot parse the expression "Units_Sold*Sale_Price". The expression was not valid, or there is an out-of-memory error.

Error at ETL 1 [Derived Column [62]]: The expression "Units_Sold*Sale_Price" on "Derived Column.Outputs[Derived Column Output].Columns[total_amt]" is not valid.

Error at ETL 1 [Derived Column [62]]: Failed to set property "Expression" on "Derived Column.Outputs[Derived Column Output].Columns[total_amt]".


附加信息:

Exception from HRESULT: 0xC0204006 (Microsoft.SqlServer.DTSPipelineWrap)


按钮:

好的

在派生列中,表达式匹配中使用的列与输入列的字符和大小写完全匹配。由于您的输入列有 space,因此您需要使用方括号来区分它们。下划线不是必需的,可以保留 space,因为列名将按如下方式括起来。

[Units Sold] * [Sale Price]