【发布时间】:2014-06-07 15:40:20
【问题描述】:
在将平面文件转换为数据库表时,我只收到了这 2 个错误。数据流似乎适用于具有相同布局的其他平面文件,所以我不明白这些错误可能来自哪里。
[Flat File Source [204]] Error: An error occurred while skipping data rows.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.
The PrimeOutput method on Flat File Source returned error code 0xC0202091.
The component returned a failure code when the pipeline engine called
PrimeOutput(). The meaning of the failure code is defined by the component,
but the error is fatal and the pipeline stopped executing. There may be
error messages posted before this with more information about the failure.
【问题讨论】:
-
什么类型的文件(csv、txt、bin)?什么是分隔符?如果您在调试期间观察 OUTPUT 窗口,SSIS 应该能够告诉您它阻塞在哪一行。
-
您是否在文件开头跳过了标题行或任何数量的其他行?
-
我会尝试捕获它失败的行。该错误将向我表明文件中存在错误、缺失或额外的分隔符,并且它违反了格式。其他可能性是不可见字符(unicode 有时会这样做)或错误的行终止符。
-
输出窗格中应该有更多错误消息。您能否仔细检查一下您是否无意中错过了其中之一?
-
文件是否小到可以手动检查?有时,您会在分隔符的位置看到一个奇数字符或一长串空格。
标签: sql-server ssis flat-file