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

Bal*_*e47 5 sql-server ssis etl ssms visual-studio

获取错误

"The version of flat file destination is not compatible with this version of the dataflow"
Run Code Online (Sandbox Code Playgroud)

尝试从目录中执行 SSIS 包时,该包在 Visual Studio 中执行良好。我尝试在目录中以 32 位模式和 64 位模式运行它。

该包只是执行一个存储过程并将结果导出为 csv。我不知道它会发生什么导致这个“版本不兼容”搜索它我发现了类似 的东西,建议是删除一个包含“版本”的部分,我这样做了,我得到了相同的结果结果。

这些是我得到的错误:

?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
? 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    ?                                 ?                           ?
?              ?              ?                     ?                                                                                 ?               ?                                 ?                           ?
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Run Code Online (Sandbox Code Playgroud)

请让我知道我可以添加哪些其他信息。我在服务器中运行了其他包,因此 SSIS 目录可以工作。这个特殊的包在 Visual Studio 中有效,但不在目录中。出现故障的组件是一个数据流,它具有到平面文件目标的 OLEDB 连接:

在此处输入图片说明

使用基本的平面文件连接管理器: 在此处输入图片说明

更新:我发现如果我从 Visual Studio 进行部署,则当我在 SSMS 中执行时,该包可以正常工作。问题是我需要导入包,因为它将安装在未与 Visual Studio 连接的第三方服务器中。我正在尝试在我的计算机上复制它(服务器在我的计算机中)并且它适用于从 VS 部署但不适用于导入。这是我在执行导入文件时得到的错误(上表也显示了它): 在此处输入图片说明

小智 7

我通过转到项目属性并将 TargetServerVersion 从 SQL Server 2019 更改为 2017 来解决此问题 在此处输入图片说明


小智 4

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

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

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

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

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