Datatype conversion issue

  • i have a ssis package imports msaccess data to sql. i am getting an error as below. I checked the year datatype

    in access. It shows text datatype and in sql it is in float. I am new to ssis. How to overcome this error

    TITLE: Package Validation Error

    ------------------------------

    Package Validation Error

    ------------------------------

    ADDITIONAL INFORMATION:

    Error at Data Flow Task [Lookup [1552]]: input column "Year" (1615) has a datatype which cannot be joined on.

    Error at Data Flow Task [DTS.Pipeline]: "component "Lookup" (1552)" failed validation and returned validation status "VS_ISBROKEN".

    Error at Data Flow Task [DTS.Pipeline]: One or more component failed validation.

    Error at Data Flow Task: There were errors during task validation.

    (Microsoft.DataTransformationServices.VsIntegration)

    ------------------------------

    BUTTONS:

    OK

    ------------------------------

  • You need to convert the year column being brought in from access from text to string. Text is a binary type, not a string type.

  • Jack,

    I tried but gets the same error. Can you be specific?

  • It's been awhile since I've used a lookup transform, but is sounds like you need to have the data types match on the join columns. So either have them both be numeric or string. I'd lean toward putting a CONVERT() in the query in the Lookup to convert that value to string to match the incoming data.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply