• viresh29 (6/4/2014)


    The column after "A" is "" that means it's empty so SSIS takes empty space as string.

    You are getting error because your destination column is Integer.

    You need to convert empty space into NULL

    Use derive column and in that change empty space into NULL

    for example Write expression in derived column

    [ColumnName] == " " ? (NULL, DT_WSTR,20) : [ColumnName]

    This will convert " " into NULL. and you can process your file.

    Please let me know If you still get that error.I had the same issue and I resolve it.

    Nope, implicit conversion takes care of that problem. An empty string is converted to 0.

    declare @test-2 int;

    set @test-2 = '';

    select @test-2;

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP