在过去的 10 个小时里,我一直在尝试解决以下问题:
我有一个 ForEach 循环容器,它在我的控制流中枚举 Excel 文件名。在 ForEach 循环容器中,我有一个将数据导入 Sql-Server 的 Excel 源。这使用 User::FileName 作为表达式连接到派生列转换,该表达式连接到 OLE DB 命令,该命令映射到 User::FileName 到 Sql-Server 中的 Report_Date(Excel 文件名包含报告日期)列到相关行。
以下是我的控制流的片段:
我不断收到以下异常:
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.
我已经尝试了我所知道的一切并且无法摆脱它。用完了选项。
我错过了这个过程中的一步吗?