【发布时间】:2020-07-19 20:17:50
【问题描述】:
遇到错误
"The version of flat file destination is not compatible with this version of the dataflow"
尝试从目录执行 SSIS 包时,该包在 Visual Studio 中执行良好。我已经尝试在目录中以 32 位模式和 64 位模式运行它。
该包只执行一个存储过程并将结果导出为 csv。我不知道会发生什么导致此“版本不兼容” 搜索它我发现了一些东西similar,建议删除其中包含“版本”的部分,我这样做了,我得到了相同的结果。
这些是我得到的错误:
╔══════════════╦══════════════╦═════════════════════╦═════════════════════════════════════════════════════════════════════════════════╦═══════════════╦═════════════════════════════════╦═══════════════════════════╗
║ Message Type ║ Action ║ Message ║ Message ║ Message ║ Subcomponent ║ Execution Path ║
║ ║ ║ Time ║ ║ Source Name ║ Name ║ ║
╠══════════════╬══════════════╬═════════════════════╬═════════════════════════════════════════════════════════════════════════════════╬═══════════════╬═════════════════════════════════╬═══════════════════════════╣
║ OnError ║ View Context ║ 4-7-2020 5:05:23 PM ║ Export to Excel:Error: There were errors during ║ Export ║ ║ \Package1\Export to Excel ║
║ ║ ║ ║ task validation. ║ to Excel ║ ║ ║
║ ║ ║ ║ ║ ║ ║ ║
╠══════════════╬══════════════╬═════════════════════╬═════════════════════════════════════════════════════════════════════════════════╬═══════════════╬═════════════════════════════════╬═══════════════════════════╣
║ OnError ║ View Context ║ 4-7-2020 5:05:23 PM ║ Export to Excel:Error: One or more component ║ Export ║ SSIS.Pipeline ║ \Package1\Export to Excel ║
║ ║ ║ ║ failed validation. ║ to Excel ║ ║ ║
║ ║ ║ ║ ║ ║ ║ ║
╠══════════════╬══════════════╬═════════════════════╬═════════════════════════════════════════════════════════════════════════════════╬═══════════════╬═════════════════════════════════╬═══════════════════════════╣
║ OnError ║ View Context ║ 4-7-2020 5:05:23 PM ║ Export to Excel:Error: Flat File Destination ║ Export ║ SSIS.Pipeline ║ \Package1\Export to Excel ║
║ ║ ║ ║ failed validation and returned error code 0xC0048021. ║ to Excel ║ ║ ║
║ ║ ║ ║ ║ ║ ║ ║
╠══════════════╬══════════════╬═════════════════════╬═════════════════════════════════════════════════════════════════════════════════╬═══════════════╬═════════════════════════════════╬═══════════════════════════╣
║ OnError ║ View Context ║ 4-7-2020 5:05:23 PM ║ Export to Excel:Error: The component is ║ Export ║ Flat File Destination [2] ║ \Package1\Export to Excel ║
║ ║ ║ ║ missing, not registered, not upgradeable, or missing required interfaces. The ║ to Excel ║ ║ ║
║ ║ ║ ║ contact information for this component is "Flat File ║ ║ ║ ║
║ ║ ║ ║ Destination;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft ║ ║ ║ ║
║ ║ ║ ║ Corporation; All Rights Reserved; ║ ║ ║ ║
║ ║ ║ ║ http://www.microsoft.com/sql/support;1". ║ ║ ║ ║
║ ║ ║ ║ ║ ║ ║ ║
╠══════════════╬══════════════╬═════════════════════╬═════════════════════════════════════════════════════════════════════════════════╬═══════════════╬═════════════════════════════════╬═══════════════════════════╣
║ OnError ║ View Context ║ 4-7-2020 5:05:23 PM ║ Export to Excel:Error: The version of Flat File ║ Export ║ SSIS.Pipeline ║ \Package1\Export to Excel ║
║ ║ ║ ║ Destination, clsid {0667D728-1E5F-4BB6-863D-B29D3F405706} is not compatible ║ to Excel ║ ║ ║
║ ║ ║ ║ with this version of the DataFlow. ║ ║ ║ ║
║ ║ ║ ║ ║ ║ ║ ║
╠══════════════╬══════════════╬═════════════════════╬═════════════════════════════════════════════════════════════════════════════════╬═══════════════╬═════════════════════════════════╬═══════════════════════════╣
║ OnError ║ View Context ║ 4-7-2020 5:05:23 PM ║ Export to Excel:Error: The version of Flat File ║ Export ║ Export to Excel (SSIS.Pipeline) ║ \Package1\Export to Excel ║
║ ║ ║ ║ Destination is not compatible with this version of the DataFlow. ║ to Excel ║ ║ ║
║ ║ ║ ║ ║ ║ ║ ║
╚══════════════╩══════════════╩═════════════════════╩═════════════════════════════════════════════════════════════════════════════════╩═══════════════╩═════════════════════════════════╩═══════════════════════════╝
请让我知道我可以添加哪些其他信息。我在服务器中运行了其他包,因此 SSIS 目录可以正常工作。这个特殊的包可以从视觉工作室工作,但不在目录上。失败的组件是一个与平面文件目标有 OLEDB 连接的数据流:
更新: 我发现当我在 SSMS 中执行时,我从 Visual Studio 进行部署,该包可以工作。问题是我需要导入包,因为它将安装在未与 Visual Studio 连接的第三方服务器中。 我正在尝试在我的计算机上复制它(服务器在我的计算机中),它适用于从 VS 部署,但在导入时不起作用。 这是我在执行导入文件时遇到的错误(上表也显示了它):
【问题讨论】:
-
听起来您缺少 SSIS 的一些可选功能。您的服务器上使用的是哪个版本的 SSIS?您在 VStudio 中使用的是哪个版本的 SSDT?
-
另外,在您的服务器上,您必须使用不同的文件名和路径。你可以检查权限。也许尝试仅针对该文件夹将 Full 授予所有人。
-
服务器在我的电脑上,所以路径是一样的。我也以管理员身份执行。我正在运行 SSIS 14.0。和其他 SSIS 包正在服务器中运行(一个用于从 excel 上传到 db 工作,从 db 到平面文件没有)错误说它是与数据流相关的平面文件版本
-
您在哪个版本的 VS 中创作您的 SSIS 包?您使用什么工具和版本部署到 SQL Server 目录?您部署到哪个版本的 SQL Server?
-
我正在使用 VS2019 构建目标 SQL Server 2017,我使用目录部署并从 VS 部署。 SQL Server 的版本是 2017 - 14.0.2027.2
标签: sql-server visual-studio ssis ssms etl