Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to overcome: System.InvalidCastException: Unable to cast object of type

679926Jan 14 2009
Hi,

For the database connectivity, we use ODP.Net. In one of the functionality we are trying to bind an array to stored procedures and have it execute for the each iteration of the array as a bulk transaction.

Not always but, 10% of the times the function has raised the following exception

System.InvalidCastException: Unable to cast object of type 'System.DateTime[]' to type 'System.IConvertible' .

Has anyone ever faced such a problem, if someone has a soltuion it would be of great help to me.

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2009
Added on Jan 14 2009
0 comments
1,177 views