When trying to insert a operation in the production order routing lines an error is thrown Error- Overflow under type conversion of Decimal to Integer. Value: 5,940,000,000 When I went through the code the error is when calculating the Ending time. Why this should happen Thanks in advance
In a integer you can store whole numbers with values that range from -2,147,483,647 to 2,147,483,647. 5,940,000,000 is more than 2,147,483,647. That’s the “Overflow”.
Try using BigInteger. It will fit. Usualy this happens with calculation of duration if the duration is to long. You can also use DateTime. This is a decimal field under water. Regards, Mark
This error is flashed even before the workcenter and run time is given. Also the data type for the Ending time is Time. Thanks for reply