Skip to main content
Solved

Arithmetic overflow erroe


ElenaTodirenchi
Vanguard
Forum|alt.badge.img+1

Hello. 

I added a new column to a table and I made a reference to another table. And when I tried to add a value in the column I received this error.

 

 

Best answer by Robbert van Tongeren

In that trigger (goods_receipt_line_tu) on line 47, there is something that cannot be converted to a int. That is the location you should be looking at.

I would guess the problem is that the INT you are tying to insert is getting larger then 2147483647, which is the maximum for an int. If you need to go bigger you should be using a BIGINT. 
Or maybe the calculation for adding up is not correct which results into a large number.

This is the error you are getting.

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

8 replies

Robbert van Tongeren
Thinkwise blogger

Can you expand the error by clicking on the blue arrow in the bottom left corner?

And can you also open up the developer tool → debug and show that screen as well?


ElenaTodirenchi
Vanguard
Forum|alt.badge.img+1

 


Robbert van Tongeren
Thinkwise blogger

Can you check in your upgrade trigger of good receipts line on line 47? 


ElenaTodirenchi
Vanguard
Forum|alt.badge.img+1

I only have a trigger with insert, nothing with update

 

 


Robbert van Tongeren
Thinkwise blogger

Can you check on the database it self?
 

I do think you have a update trigger on the “goods_receipt_line” :)


ElenaTodirenchi
Vanguard
Forum|alt.badge.img+1
this is the trigger I sent you earlier
 

 


Robbert van Tongeren
Thinkwise blogger

In that trigger (goods_receipt_line_tu) on line 47, there is something that cannot be converted to a int. That is the location you should be looking at.

I would guess the problem is that the INT you are tying to insert is getting larger then 2147483647, which is the maximum for an int. If you need to go bigger you should be using a BIGINT. 
Or maybe the calculation for adding up is not correct which results into a large number.

This is the error you are getting.

 


ElenaTodirenchi
Vanguard
Forum|alt.badge.img+1

It was something wrong with the trigger, thank you! 😊


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings