Error "Decimal's scale value must be between 0 and 28, inclusive." when using OracleConnection

When I'm consulting a query, appear this error. What can be? (File attached).

Thanks...
query.txt
Erro1.jpg
LVL 1
arthur_infoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
What is the return value for the function up in the declaration?

I'm also curious why you are trying to return an empty data table?
0
VenabiliCommented:
See http://www.devart.com/forums/viewtopic.php?p=35049&sid=6222eaef4cbf25b206250224c882c0c0

Basically it is a problem with the scale of the Number type through the adapter... so you need to use special types.

Alternatively you can get them as Strings and convert in your code (http://social.msdn.microsoft.com/Forums/en-US/sqlgetstarted/thread/f7b7636d-7475-4848-8bc0-d1c10e36707e shows an example how) but I kinda do not like this -- unneeded conversion...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
arthur_infoAuthor Commented:
slightwv: I've returned an empty datatable because of the error.
Venabili:Yes, the problem is the adapter. OracleConnection doesn't support a number with a lot of decimal numbers... I've used an round(...,4) in the SQL and works fine.

Thanks all...

Arthur
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.