SSIS: “Error: The result of the expression ”@[User::FileName]…cannot be written to the property"

回眸只為那壹抹淺笑 提交于 2020-01-04 15:28:44

问题


I have been trying for the last 10 hours to solve the following problem:

I have a ForEach Loop container that is enumerating Excel file names in my Control Flow. Within the ForEach Loop container I have an Excel Source that imports data into Sql-Server. This connects to a Derived Column transformation using User::FileName as the expression that connects to a OLE DB Command that that maps to the User::FileName to a Report_Date (the Excel file names contain the report date) column in Sql-Server to the relevant rows.

The following is a snip of my Control Flow:

I keep getting the following exception:

Error: The result of the expression "@[User::FileName]" on property "\Package\Foreach Loop Container 1\Data Flow Task.Properties[[Derived Column].[Derived Column Output].[Derived Column 2].[FriendlyExpression]]" cannot be written to the property. The expression was evaluated, but cannot be set on the property.

Ive tried everything I know and can't get rid of it. Running out of options.

Am I missing a step in the process?

来源:https://stackoverflow.com/questions/22339631/ssis-error-the-result-of-the-expression-userfilename-cannot-be-writ

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!