Overflow in decimal

cbrandemann
Member Posts: 4
Hello,
During restoring a backup in Navision Attain I got an “Overflow in decimal” error. Due to a mistake in the C/AL-code a very great decimal amount (20.785.095.893.992.374,1) has been stored in the Navision Financial database.
My problem is: I can’t remove this great amount. I have tried a modify & delete without triggers. I got always the “Overflow in decimal” error. As had any of you a similar problem and how does you solved it? Or have you any idea for a solution.
Thanks
Chris
During restoring a backup in Navision Attain I got an “Overflow in decimal” error. Due to a mistake in the C/AL-code a very great decimal amount (20.785.095.893.992.374,1) has been stored in the Navision Financial database.
My problem is: I can’t remove this great amount. I have tried a modify & delete without triggers. I got always the “Overflow in decimal” error. As had any of you a similar problem and how does you solved it? Or have you any idea for a solution.
Thanks
Chris
0
Comments
-
Try to do backup if it is possible. Then restore in SQL and modify by using SQL tools.0
-
Hello,
Try to do like this:
First you retore only objects(threre is one option on the backup restore), and you change or comment the code wich is making the error;
Second, restore the data information.
Hope this helps,
Afonso0 -
Afonso wrote:Hello,
Try to do like this:
First you retore only objects(threre is one option on the backup restore), and you change or comment the code wich is making the error;
Second, restore the data information.
Hope this helps,
Afonso
The error in the code has been solveld already. The problem is changing data in the database.0 -
i4tost wrote:Try to do backup if it is possible. Then restore in SQL and modify by using SQL tools.
:-) Thanks. Problem solved0 -
I'm facing a similar trouble....
How is it possible that navision native DB allows insertion of data that exceeds data type limit?
](*,) ](*,) ](*,)
I',ve never seen this before
and it seems very easy to replicate the crash...
just create a table with a decimal field
then try to insert a value greater than 3.000.000.000.000.000 it shows an overflow exception.
now create a Codeunit and make this codeunit insert.
Something like this
rec.index:=1;
rec.dec1:=300.000.000.000.000 * 10;
rec.insert
No crash, even you can view the field if you run the table!!!!!
=D> =D> =D>
Incredible!!!!!!!
any feedback about this?
regards
LLuis0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions