Import fails from flat file to SQL Server in BIDS

  • Trying to load Flat File to SQL Server. Number of columns in Flat file

    ProductID - two-byte signed integer [DT_I2]

    Name -Unicode string [DT_WSTR](50)

    ProductNumber-Unicode string [DT_WSTR](25)

    MakeFlag-Boolean [DT_BOOL]

    Getting issue with last column 'MakeFlag'. What could be the issue here. For Flag related column in SSIS mapping data type is [DT_BOOL]

    I have attached sample Flat file if some body wants to test it

    Error: 0xC02020A1 at Data Flow Task, Flat File Source [1]: Data conversion failed. The data conversion for column "MakeFlag" returned status value 2 and status text "The value could not be converted because of a potential loss of data.".

    Error: 0xC0209029 at Data Flow Task, Flat File Source [1]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "output column "MakeFlag" (22)" failed because error code 0xC0209084 occurred, and the error row disposition on "output column "MakeFlag" (22)" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.

    Error: 0xC0202092 at Data Flow Task, Flat File Source [1]: An error occurred while processing file "D:\Users\Administrator\Desktop\New Folder\IndiaIndia.txt" on data row 211.

    Error: 0xC0047038 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Flat File Source" (1) returned error code 0xC0202092. 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.

    Please let me know to debug this issue

  • Please post any replies here.

    Please, do not double post your problem. You already have a thread started for this problem, let's keep all the work there instead of fragmenting it between multiple threads.

  • Edit: -- Double posted, sorry.

  • Sorry for the duplicate post

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

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