【问题标题】:SSIS Catalog Package error - Version of FlatFile destination not compatible with version of DataFlowSSIS 目录包错误 - FlatFile 目标版本与 DataFlow 版本不兼容
【发布时间】: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


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    我在将带有 SQL Server 2012 的 TargetServerVersion 的 Visual Studio 2017 包升级到 Visual Studio 2019 和 SQL Server 2017 时遇到了非常相似的问题。

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

    平面文件目标的版本与此版本的数据流不兼容

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

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

    【讨论】:

      【解决方案3】:

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

      【讨论】:

      • 我遇到了同样的错误。我将 SSIS 与 VS 2017 与 SQL Server 2019 数据库一起使用,并且我试图通过与 SQL Server 2017 一起安装的 DTExec.exe 版本来运行该程序包。那么要使用哪个 TargetServerVersion - 用于数据库的 SQL 2019 或 SQL 2017对于 DTExec 工具?最后将 TargetServerVersion 设置为 SQL Server 2017 有效。我认为这是使用 DTExec 工具所必需的,并且数据库连接管理器使用的 SQL Server Native Client 将包与它连接到的 SQL Server 版本隔离开来。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-24
      • 2016-09-21
      • 2019-10-26
      • 1970-01-01
      • 1970-01-01
      • 2012-09-28
      相关资源
      最近更新 更多