【发布时间】:2018-01-30 08:46:07
【问题描述】:
我正在尝试使用向导在 SQL Server 中导入 xlsx 文件,但是当我尝试这样做时,在“执行”中出现错误。我已经尝试了我能想到的一切,但没有成功。
**错误 0xc020901c:数据流任务 1:输出“Excel 源输出”(9) 上的输出列“DESCRIPTION”(24) 出现错误。返回的列状态为:“文本被截断或一个或多个字符在目标代码页中不匹配。”。 (SQL Server 导入导出向导)
错误 0xc020902a:数据流任务 1:“输出列“DESCRIPTION”(24)”由于发生截断而失败,并且“输出列“DESCRIPTION”(24)”上的截断行处置指定了截断失败。指定组件的指定对象发生截断错误。 (SQL Server 导入导出向导)
错误 0xc0047038:数据流任务 1:SSIS 错误代码 DTS_E_PRIMEOUTPUTFAILED。组件“Source - Sheet1$”(1) 上的 PrimeOutput 方法返回错误代码 0xC020902A。当管道引擎调用 PrimeOutput() 时,组件返回了失败代码。失败代码的含义由组件定义,但是错误是致命的并且管道停止执行。在此之前可能会发布错误消息,其中包含有关失败的更多信息。 (SQL Server 导入和导出向导)**
当我尝试将一列的数据长度更改为 nvarchar max(默认为 nvarchar 255)时,执行成功但它卡在“复制到 [dbo]”中。我正在使用 SQL Server 2008 和 Windows 10。
编辑:我已经隔离了问题。通过反复试验,我发现类似于下面显示的列中的条目是它中断的原因。谁能告诉我以下文本到底是什么导致它崩溃?会不会是换行?如果是这样,我该如何解决?
POD:02S222, TL name contact: John Smith 111-111-1111>>Asset tag:SSSS9999
User gets windows credentials pop up while opening IE
error: authorized access
Error Messages:authorized access
Screenshots:attached
Operating Environment: Windows 7
call 2
-user did reboot
-logged on with new password
-then also user getting same pop up
-since password change didn't work
-user has no issues with outlook and lync
-user wanted to check if she has same issue in other asset
-hence logged on to different computer and checked
-able to open IE in that
-hence escalating to DSS
------------------------
call 1
-Asset tag:SRGW943S
-user is ROE but now sitting in the center
-happening since yesterday
-took control
-checked in dra: account fine
-when open IE user getting credential pop up
-hence made user to change password
-SSRPM was not there
-hence used change password option
-user was able to change
-still user was getting the pop up
-hen asked to reboot and cehck
-shared the ticket no
**Title from related Incident record IM01516567:
DESKTOP / LAPTOP>>failure>>error message
【问题讨论】:
-
在导入前先尝试将文件转换为低版本 (.xls) 文件
-
一种解决方法可能是以 CSV 格式导出工作表。这还可以让您在向导中查看实际数据。
-
这两种方法我都试过了。 CSV 带来了太多的数据丢失。 XLS 也有大量数据丢失并显示相同的错误。
-
请检查编辑。
-
@Leo 如何使用 10 年前已弃用的格式 修复截断错误?
xlsx没什么问题。
标签: sql-server excel ssis