System.InvalidCastException: Conversion From Type 'OracleDecimal' to Type 'String' is Not Valid. When Returning an Oracle Integer via ODP.Net (Doc ID 989617.1)

Last updated on JULY 17, 2017

Applies to:

Oracle Data Provider for .NET - Version 10.2.0.2.2 to 11.2.0.0
Microsoft Windows (32-bit)
Microsoft Windows x64 (64-bit)

*** Checked for relevance on 17-Jul-2017 ***


Symptoms

System.InvalidCastException: Conversion from type 'OracleDecimal' to type 'String' is not valid.

Changes

This occurs after migrating the Oracle Data Provider for .Net to 10.2.0.2.20 or 11g.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms