1

我创建了 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 excelfilepathexpression 代码中是@[User::ExcelFileName] + (DT_WSTR, 20) (DT_DBDATE) GETDATE()+".xls"

这给出了评估值,例如C:\2013-05-24.xls

我该如何解决。

4

1 回答 1

0

要解决这个问题。在 Excel 连接管理器属性中,您必须将“ DelayValidation ”属性设置为TRUE

于 2013-05-24T12:19:10.413 回答