Arithmetic overflow error

Anders_Lidgren
Member Posts: 19
I'm recieveing a 8115,"22003"[Microsoft][ODBC Sql Server Driver][SQL Server]Arithmetic overflow error converting expression to data type numeric when I are trying to Calculate a calcfields that are based on following:
Sum("Sales Line"."Outstanding Qty. (Base)" WHERE (Document Type=CONST(Order),Posting Group=FIELD(Code),Shipment Date=FIELD("Date Filter"),Location Code=FIELD(Locationfilter)))
I've modified the table Sales Line to Not Maintain SIFT-index, and then saved the table. Then I put on Maintain Sift-index again to rebuild the SIFT-tables on the SQL-server but I still have the same problem.
We are running DB 3.10 and 3.70B-client on SQL2K
Anyone who has a clue?
//Andy
Sum("Sales Line"."Outstanding Qty. (Base)" WHERE (Document Type=CONST(Order),Posting Group=FIELD(Code),Shipment Date=FIELD("Date Filter"),Location Code=FIELD(Locationfilter)))
I've modified the table Sales Line to Not Maintain SIFT-index, and then saved the table. Then I put on Maintain Sift-index again to rebuild the SIFT-tables on the SQL-server but I still have the same problem.
We are running DB 3.10 and 3.70B-client on SQL2K
Anyone who has a clue?
//Andy
Anders Lidgren
Navision Developer since 1998
WM-data Sverige AB
Navision Developer since 1998
WM-data Sverige AB
0
Answers
-
hopefully this helps
http://msdn2.microsoft.com/en-us/library/ms163363.aspx0 -
I can't really see what information in the link that could be applicable on this subject. Because we can't handle the way the SIFT-tables are created and maintained. I've search through the records in the Sales Line table to find extrem values but can't find any
//Andy ](*,)Anders Lidgren
Navision Developer since 1998
WM-data Sverige AB0 -
try and disable the sift on sql and let it do a sum on actual table.
Design the table in navision. View->keys-> Find colum maintain sift. and uncheck that.0 -
I had tried that but no difference. But when I restarted the SQL-server after this adjustment then the problem was gone.
//AndersAnders Lidgren
Navision Developer since 1998
WM-data Sverige AB0 -
Hmm looks like it was a sql issue and not navision.0
-
The problem is back today ](*,) ..I've tried to sum the field both in Navision and in SQL-server without any problem, but when the Calcfield is calculated in Navision the problem occurs.
//AndersAnders Lidgren
Navision Developer since 1998
WM-data Sverige AB0 -
there is no info on partner source about this error. Try to run optemize on the sales line table.0
-
Depending on the number of sales lines, you could try disabling MaintainSIFTIndex on all keys and see how well that performs. On the Sales Line table you really should try not to have any sumindexfields.0
-
I know that the sales line table isn't a good table having MaintainSift on, but we have only one key that we maintain Sift-index on all the others are not maintaned. But the problem is altough I set the MaintainSiftIndex to No, and then try to calculate the field I still get the error. ](*,) . The problem can't be in the SIFT-tables or am I wrong?Anders Lidgren
Navision Developer since 1998
WM-data Sverige AB0 -
I've solved it
, I deleted the key on Sales Line table and saved the table, then I put the key back on and then it worked. Something had went wrong with the key.
//AndersAnders Lidgren
Navision Developer since 1998
WM-data Sverige AB0 -
[Topic moved from Navision Attain forum to SQL General forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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