Load table in AS400 using SSIS

  • I am using SSIS to load table in AS400. Its just a few columns one to one mapping. While loading the table I am getting following error: I even tried to cast each source field to varchar before loading to AS400 table but still getting this error. Can anybody please help?

    Microsoft DB2 OLE DB Provider" Hresult: 0x80040E14 Description: "Character in CAST argument not valid. SQLSTATE: 22018, SQLCODE: -420"

  • Just a shot in the dark...try nvarchar()?

  • Can you post the code you are using?

  • Ok...Connection is made...Mapping done between SSIS and AS400...package runs sucessfully..In the debug mode, it shows there were about 17 records inserted...But I am getting a warning

    "[OLE DB Destination [16]] Warning: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used. "

    And the following message: [DTS.Pipeline] Information: "component "OLE DB Destination" (16)" wrote 0 rows.

    Nothing got written at destination....

    Can anybody help?

    Thanks a lot.

  • Any suggestions or advise I can use?

  • SSC Journeyman, here is how you can get rid of the warning message. On the OLE DB Destination that maps data to the as/400 do the following.

    Right click and select advanced editor

    go into component properties

    scroll down to "AlwaysUseDefaultCodePage" and set it to "True"

Viewing 6 posts - 1 through 5 (of 5 total)

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