Click here to Skip to main content
15,886,045 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi I have a column in SQL Server 2008 in which I stored as BIGINT. I will use the column's data in SSIS and I declare the variable as INT64 data type. When I execute the SSIS, it returns me the error message as title above.
How can I solve the issue? Seems like a bug in SSIS.

I plan to change the data type in SQL into INT and data type in SSIS as INT32 but before I used the last option, I would like to listen to any suggestions here. Thank you.

What I have tried:

1. Change data type in SSIS from INT64 into String as suggested online and remain data type in SQL as BIGINT but did not work.
Posted
Updated 15-Feb-17 9:04am
Comments
NightWizzard 6-Jan-17 12:18pm    
Maybe the problem isn't the data type but invalid or empty values within your import data?
RedDk 15-Feb-17 18:12pm    
More information would be helpful. Can you absolutely verify that the bigint returned the error? What I mean is, this message could be a type II error; that a parse operation is going bad due to some change in an "upgrade" to the database and the return to the type is actually an unframed bit of a string. Another way it could FAIL is if the QUERY is regarding a CAST. For the same reason. Try taking apart the procedure and executing in blocks if you're hamstrung for any further workaround.

According to this MSDN blog post[^] from 2007, bigint values are returned as strings, because there was no cross-platform support for an 8-byte integer type in variant[^] values.

The posts suggests that this would be fixed in a future version. However, a comment from 2010 says that it wasn't fixed in 2008R2. Another comment suggests that it wasn't fixed in 2012 either.

It looks like you're going to have to change the SSIS parameter type to string, and try to resolve the problems you had with that approach.
 
Share this answer
 
Bigint 's corresponding data type in SSIS is sbyte IN ssis
 
Share this answer
 
Comments
Richard Deeming 15-Feb-17 14:55pm    
bigint is a 64-bit signed integer.
sbyte is an 8-bit signed integer.

The two types are NOT equivalent.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900