loading data from SQL 2008 to AS400 - getting error, please help!

  • We are using ADO net connection for both SQL 2008 and AS400,

    when I am trying to insert all the data from the sql 2008 table(about 66k rows), only about 44 rows are getting inserted into the AS400 file and then it errors out with below error:

    [ADO NET Destination [457]] Error: An exception has occurred during data insertion,

    the message returned from the provider is:

    ERROR [07002] [IBM][iSeries Access ODBC Driver]Wrong number of parameters.

  • How to trouble shoot where the problem is? Any ideas. Thanks.

  • Any body can help on this, I need this urgently. Thanks!!

  • Mh-397891 (4/11/2010)


    How to trouble shoot where the problem is? Any ideas. Thanks.

    Check the source data in row 45. There must be something 'different' in it which is causing the error ...

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • There is no difference in the data. I am very frustrated with this error.

  • Mh-397891 (4/27/2010)


    There is no difference in the data. I am very frustrated with this error.

    Understandably. Does it always process exactly 44 rows? If so, can you try reading in the data in a different order, just to make sure that this is not data related? If you do this and the answer is still 44, I shall be extremely puzzled!

    Is your package doing any complex processing or manipulation?

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • Mh-397891 (4/9/2010)


    We are using ADO net connection for both SQL 2008 and AS400,

    when I am trying to insert all the data from the sql 2008 table(about 66k rows), only about 44 rows are getting inserted into the AS400 file and then it errors out with below error:

    [ADO NET Destination [457]] Error: An exception has occurred during data insertion,

    the message returned from the provider is:

    ERROR [07002] [IBM][iSeries Access ODBC Driver]Wrong number of parameters.

    This looks like buggy IBM ODBC driver. I have one suggestion to try, but it requires third-party commercial component. I'm talking about CozyRoc's ODBC Destination component. It supports both regular and bulk-load insert.

    ---
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

  • I agree with Phil.

    There must be some character like " ' " or something thats not allowing the transfer.

    Can you give us a snapshot/column & their datatypes of the 2 tables in both sql server and as/400?

    Rex Smith

  • Hi.

    Have you been able to resolve this problem? I am getting the same error.

    Does not always fail on the same row.

    This is very frustrating --- this is just a simple import into the iSeries.

  • I understand this is an old thread but for who are faicng this issue, this might can help them

    you can map upto a maximum of 5 columns and it will execute successfully.(it worked for me)

    Might be this can be a bug not sure :hehe:

    Use multicast if possible in your scenarios:-)

    Hope this helps !!

    Thanks

Viewing 10 posts - 1 through 9 (of 9 total)

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