Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS package is not failing when the supplied column valuse are more than the number of columns in a table.

$
0
0

I'm having a table "Sample" with 3 columns COL1, COL2, COL3 and a flat file with below contents

1¦2¦3

1¦2¦3¦4

When I tried to load data from flat file to table, the data is loaded as below

Flat file
  values

Actual
  Result

Expected
  Result

Values   inserted in table

COL
  1

COL
  2

COL
  3

1|2|3

pass

pass

1

2

3

1|2|3|4

pass

fail

1

2

3 |4

But the package should fail, if it gets the values for more than 3 columns. To resolve this I used text qualifier “in flat file. But still I’m facing some issues when the text qualifier is missing.

Flat file
  values

Actual
  Result

Expected
  Result

Values   inserted in table

COL
  1

COL
  2

COL
  3

"1"|"2"|"3"

pass

pass

1

2

3

"1"|"2"|"3"|"4"

fail

fail

no row inserted

"1"|"2"|3"

pass

fail

1

2

3"

"1"|"2"|"3

fail

fail

no row inserted

How to resolve this issue?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>