SSIS 目录包错误 - 平面文件目标版本与 DataFlow 版本不兼容

SSIS Catalog Package error - Version of FlatFile destination not compatible with version of DataFlow

获取错误

"The version of flat file destination is not compatible with this version of the dataflow"

尝试从目录执行 SSIS 包时,包从 visual studio 执行得很好。我已经在 32 位模式和 64 位模式下在目录中尝试 运行 它。

该包只是执行一个存储过程并将结果导出为 csv。我不知道它会发生什么 "version not compatible" 搜索它我发现了一些东西 similar 并且建议删除其中包含 "version" 的部分,我这样做了并且得到了相同的结果。

这些是我遇到的错误:

╔══════════════╦══════════════╦═════════════════════╦═════════════════════════════════════════════════════════════════════════════════╦═══════════════╦═════════════════════════════════╦═══════════════════════════╗
║ 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    ║                                 ║                           ║
║              ║              ║                     ║                                                                                 ║               ║                                 ║                           ║
╚══════════════╩══════════════╩═════════════════════╩═════════════════════════════════════════════════════════════════════════════════╩═══════════════╩═════════════════════════════════╩═══════════════════════════╝

请让我知道我可以添加哪些其他信息。我在服务器中还有其他软件包 运行ning,因此 SSIS 目录可以正常工作。这个特定的包适用于 visual studio,但不在目录中。失败的组件是一个数据流,它具有到平面文件目标的 OLEDB 连接:

使用基本的平面文件连接管理器:

更新: 我发现如果我从 visual studio 进行部署,当我在 SSMS 中执行时,程序包会工作。问题是我需要导入包,因为它将安装在未与 visual studio 连接的第三方服务器中。 我正在尝试在我的计算机上复制它(服务器在我的计算机中)并且它适用于从 VS 部署但在导入时不起作用。 这是我在执行导入文件时遇到的错误(上面的 table 也显示了它):

我运行遇到了同样的问题,因为该项目是针对SQL 2019的,而我使用的是SQL 2017。我将其更改为SQL 2017在 VS 项目属性中,它成功了!

我在将 Visual Studio 2017 包升级到 SQL Server 2012 的 TargetServerVersion 到 Visual Studio 2019 和 SQL 时遇到了一个非常相似的问题服务器 2017.

除了我们从 Visual Studio 中 运行 设计位置中的包时,我们不断收到错误:

The version of flat file destination is not compatible with this version of the dataflow

我通过以下方式解决了这个问题:

  • 使用 Integration Services 导入项目向导
  • 将原始包导入 Visual Studio 2019
  • 正在将 TargetServerVersion 设置为 SQL Server 2017
  • 转换部署模型;和
  • 部署到所有 Servers/SSMS 需要使用 ispac 文件定位。

我通过转到项目 属性 并将 TargetServerVersion 从 SQL Server 2019 更改为 2017 来解决此问题