Visual Studio SSIS目录包错误-FlatFile目标的版本与DataFlow的版本不兼容

mbjcgjjk  于 2022-12-30  发布在  其他
关注(0)|答案(4)|浏览(205)

获取错误

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

当试图从目录中执行SSIS包时,该包在VisualStudio中执行得很好。我曾在目录中尝试过在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目录可以工作。并且此特定包可以从visual studio工作,但不能在目录上工作。失败的组件是具有到平面文件目标的OLEDB连接的数据流:

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

更新:我发现如果我从visual studio进行部署,当我在ssms中执行时,包可以工作。问题是我需要导入包,因为它将被安装在未与visual studio连接的第三方服务器上。我正尝试在我的计算机上复制它(服务器是在我的计算机),它的工作与部署从VS,但不是当导入.这是我得到的错误时,执行导入的文件(上表也显示了它):

wljmcqd8

wljmcqd81#

我通过转到项目属性并将TargetServerVersion从SQL Server 2019更改为2017

修复了此问题

ar5n3qh5

ar5n3qh52#

我在将带有TargetServerVersion的SQL Server 2012的Visual Studio 2017包升级到Visual Studio 2019和SQL Server 2017时遇到了非常类似的问题。
除了在Visual Studio中运行设计位置中的包之外,我们一直收到错误:
平面文件目标的版本与此版本的数据流不兼容
我通过以下方式解决了该问题:

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

zxlwwiss3#

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

rkue9o1l

rkue9o1l4#

我遇到了同样的问题,因为项目是针对SQL 2019的,在和工程师坐下来之后,我们把它改成了2016。
you are going to go to the solution explorer and right click on the project name and click on properties
then click on general and for target serverversion click the year that your server is at
1.转到解决方案资源管理器2.右键单击您的项目名称(粗体)3.单击属性4.单击配置属性5.单击常规6.对于目标服务器版本,单击SQK Server 2016或您拥有的任何服务器版本7.单击确定

相关问题