Overflow in calculation of 2147480030 + 10000

bolko
Member Posts: 13
Hi,
When I post SO or PO ...
"Overflow in calculation of 2147480030 + 10000"
How can I fix it? seem that the posting is correct but still showing the message..
Thanks,
When I post SO or PO ...
"Overflow in calculation of 2147480030 + 10000"
How can I fix it? seem that the posting is correct but still showing the message..
Thanks,
0
Comments
-
Looks to me like you want to put a really big number in an integer, and you just hit the maximum value.0
-
Thanks,
But why happened when I posted SO and PO where I have to go to fix it..
directly to the code unit?...0 -
You must have orders with insane numbers of lines. I have not seen this happen before, even on orders with thousands of lines.
It feels like this is caused by a customization, since the number 2147480030 is not a 10000 increment. The least you should do is debug the problem and see what the program is trying to do when it errors out.0 -
This error usually appears in very large journals. It is somewhat strange that this happens when a PO/SO is posted. Are there any journal lines ( for barcodes etc. from an add-on ) automatically created when posting takes place ?
All you can do in this case is to delete/post the journal lines so the line number starts at 10000 again.
If this happens frequently it is possible to decrease the line number increment from 10000 to 10 , but then you can only insert a few new lines between already existing ones since the Line Number is part of the primary key, but this shouldn't be a problem in an automatic journal.Kai Kowalewski0 -
kowa,
You right.. It is a modification, I have a SerialNumber table that the last line number is " 2147480030 " ..
Could I decrease that number...0 -
First, you will have to run a report that renames the primary key to decrease all the line numbers in this S/N Table.
Then , to prevent this happening again the increment coding for the line number must be changed to a smaller interval.
:roll:Kai Kowalewski0 -
Or, the code that creates the journal lines could be changed to not use that serial number as the basis to calculate the line number.0
-
If you are using a 3.6 or higher client/server on the financials database, you can also use BigInteger field instead of an Integer Field in the table, but then you will probably need to change the code ( integer variable ) too.Kai Kowalewski0
-
I'm using 2.6..
but I will run a report to change the SN line ( to lower #), and then modify rpt. "Post SN Journal"..
changing 10000 to 10
what do you think?
***
IF SNLedgerEntry.FIND('+') THEN
SNCounter := SNLedgerEntry."Line No." + 10000
ELSE
SNCounter := 10000;
SNLedgerEntry.INIT;
SNLedgerEntry.TRANSFERFIELDS("SN Journal Line");
SNLedgerEntry."Line No." := SNCounter;
SNLedgerEntry."Posting Date" := WORKDATE;
SNLedgerEntry.INSERT;0 -
If SNLedgerEntry."Line No." is part of the primary key then a RENAME is necessary(modify the "Line No." in the first few records manually (10000,20000,30000.. to 10,20,30.. ) to prevent insert errors, then step through the table renaming all the records, otherwise if "Line No." is not part of the primary key create a second variable SNLedgerEntry2, stepping through the first one and writing the other.
something like :
SNLedgerEntry2.INIT;
SNLedgerEntry2.TRANSFERFIELDS("SN Journal Line");
SNCounter += 10; // or even 1
SNLedgerEntry2."Line No." := SNCounter;
SNLedgerEntry2."Posting Date" := WORKDATE;
SNLedgerEntry2.INSERT;
You can delete the old records afterwards by filtering on the "Line No.".Kai Kowalewski0 -
THANKS, FIXED!0
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