我创建了 SSIS 来从 sql 生成一个 excel 文件,并根据今天的日期动态地给出文件名。
由于测试,我还没有部署包。
当我更改系统日期以测试它是否能够为该日期创建文件但它给了我以下错误
Error at Data Flow Task [Excel Destination [34]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37.
Error at Data Flow Task [Excel Destination [34]]: Opening a rowset failed. Check that the object exists in the database.
Error at Data Flow Task [SSIS.Pipeline]: "component "Excel Destination" (34)" failed validation and returned validation status "VS_ISBROKEN".
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
Error at Data Flow Task : There were errors during task validation.
(Microsoft.DataTransformationServices.VsIntegration)
在excel connection manager
我设置property excelfilepath
的expression
代码中是@[User::ExcelFileName] + (DT_WSTR, 20) (DT_DBDATE) GETDATE()+".xls"
这给出了评估值,例如C:\2013-05-24.xls
我该如何解决。