使用SISS导入Csv文件 [英] Importing a Csv File using SISS

查看:151
本文介绍了使用SISS导入Csv文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在导入制表符分隔文件并收到此错误。

I am importing a tab delimited file and get this error .


错误:任务3处的0xC02020A1 - 核心数据的数据加载,平文件来源[14]:数据转换失败。列"列85"的数据转换可用于列"列85"。返回状态值4和状态文本"文本被截断,或者目标
代码页中的一个或多个字符不匹配。"。

Error: 0xC02020A1 at Task 3 - Data Load for Core Data, Flat File Source [14]: Data conversion failed. The data conversion for column "Column 85" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".

错误:任务3处的0xC020902A - 核心数据的数据加载,平面文件源[14]:"输出列"列85" (448)"失败,因为发生了截断,并且截断行处置在"输出列"列85"上。 (448)"指定截断失败。
指定组件的指定对象上发生截断错误。错误:任务3处的0xC0202092 - 核心数据的数据加载,平面文件源[14]:处理文件"C:\ Metrics \ _report-quoteCoreData.csv"时发生错误。在数据行540上。错误:
0xC0047038在任务3 - 引用核心数据的数据加载,SSIS.Pipeline:SSIS错误代码DTS_E_PRIMEOUTPUTFAILED。组件"平面文件源"上的PrimeOutput方法(14)返回错误代码0xC0202092。当管道
引擎调用PrimeOutput()时,该组件返回了失败代码。失败代码的含义由组件定义,但错误是致命的,管道停止执行。在此之前可能会发布错误消息

Error: 0xC020902A at Task 3 - Data Load for Core Data, Flat File Source [14]: The "output column "Column 85" (448)" failed because truncation occurred, and the truncation row disposition on "output column "Column 85" (448)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component. Error: 0xC0202092 at Task 3 - Data Load for Core Data, Flat File Source [14]: An error occurred while processing file "C:\Metrics\report-quoteCoreData.csv" on data row 540. Error: 0xC0047038 at Task 3 - Data Load for Quote Core Data, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Flat File Source" (14) returned error code 0xC0202092. 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

当我在其中一个字段上设置截断错误时忽略它似乎导入。

When I set truncation error ignore on one of the fields it seems to import .

不幸的是我得到了

Column A ( customer ) Column B ( Location ) Column C ( should be Y or N ) 
Jimmy                        New York               ssssss  
( instead of Y )  

在这一行我有一个超过255个字符的早期字段,并导致SSIS中的ERROR。如果我告诉它忽略错误,我会为该行插入错误的数据。 "Ssss ...."是超过255个字符的字段。

On this row I have an earlier field which goes over 255 characters and causes the ERROR above in SSIS. If I tell it to ignore the error , I get the wrong data inserted for that row . "Ssss ...." is the field where it goes over 255 characters.

这里的解决方案是什么?

What is the solution here?

推荐答案

什么不是将第3列的数据库字段大小设置为更大的值以避免出现这种情况?
Wht not set the database field size for column 3 to a larger value to avoid such scenarios?


这篇关于使用SISS导入Csv文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆