SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


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


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

Author
Message
Mh-397891
Mh-397891
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1584 Visits: 1514
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.
Mh-397891
Mh-397891
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1584 Visits: 1514
How to trouble shoot where the problem is? Any ideas. Thanks.
Mh-397891
Mh-397891
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1584 Visits: 1514
Any body can help on this, I need this urgently. Thanks!!
Phil Parkin
Phil Parkin
SSC Guru
SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)

Group: General Forum Members
Points: 52344 Visits: 21180
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 ...


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Mh-397891
Mh-397891
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1584 Visits: 1514
There is no difference in the data. I am very frustrated with this error.
Phil Parkin
Phil Parkin
SSC Guru
SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)SSC Guru (52K reputation)

Group: General Forum Members
Points: 52344 Visits: 21180
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?


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
CozyRoc
CozyRoc
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6796 Visits: 2235
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/


RexSmith
RexSmith
SSC Veteran
SSC Veteran (279 reputation)SSC Veteran (279 reputation)SSC Veteran (279 reputation)SSC Veteran (279 reputation)SSC Veteran (279 reputation)SSC Veteran (279 reputation)SSC Veteran (279 reputation)SSC Veteran (279 reputation)

Group: General Forum Members
Points: 279 Visits: 56
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
Michael D'Angelo
Michael D'Angelo
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
Points: 19 Visits: 14
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.
mailadds233
mailadds233
SSC Rookie
SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)

Group: General Forum Members
Points: 31 Visits: 151
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search