SSIS mysterious error

2020-02-11 18:14发布

I got only these 2 errors when converting flat files to database tables. The dataflow seems to work for other flat files with the same layout so I don't understand where these errors could come from.

[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.

8条回答
2楼-- · 2020-02-11 18:45

I had this problem when transferring tables which contained a SQL Geometry column.

查看更多
Emotional °昔
3楼-- · 2020-02-11 18:48

For the benefit of others with this error, I had the same issue (An error occurred while skipping data rows) but it was not due to quote marks in the file, delimiters, or qualifiers. I am not skipping any header or data rows either. So it's a pretty annoying error message, which gives no insight whatsoever into the actual problem.

Anyway I was able to get it working by checking 'Retain null values from the source as null values in the data flow' in the connection manager tab of the flat file source editor.

查看更多
狗以群分
4楼-- · 2020-02-11 18:49

I was able to resolve it by setting header rows skip count to zero (0).

Flat File Connection Manager --> Header rows to skip: 0
查看更多
Summer. ? 凉城
5楼-- · 2020-02-11 18:59

I encouter the same error message in a SSIS project. The problem was in a connection of flat file source. Just recreating the connection worked for me.

查看更多
甜甜的少女心
6楼-- · 2020-02-11 19:00

I agree with the answer above "files were older and had some columns missing in the header" (and I upvoted this answer). I just had the same error, and after investigation it was because the external flat file had a column missing, compared to the columns expected by the flat file connection manager. In essence, the SSIS error "An error occurred while skipping data rows" should be interpreted as meaning "Check the actual columns in the flat file source match the columns defined in its connection manager".

查看更多
男人必须洒脱
7楼-- · 2020-02-11 19:01
  1. You might need to check if all the required columns are available in flat source file.
  2. check in Flat File Connection Manager for "number of header rows to skip" and confirm it to be correct based on the source file content.
查看更多
登录 后发表回答