Arithmetic operation resulted in an overflow

Date: 2021-11-09
at System.Data.Odbc.SQLLEN.op_Implicit(SQLLEN value)
   at System.Data.Odbc.OdbcDataReader.FirstResult()
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
   at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
   at System.Data.Odbc.OdbcCommand.ExecuteNonQuery()
   at As400Adapter.Repositories.Base.AS400BaseRepository`1.RunStatement(DataConnection c, String sql) in C:\TFSAgents\WEB-Agent-2\_work\48\s\As400Adapter\Repositories\Base\AS400BaseRepository.cs:line 179
   at As400Adapter.Repositories.Base.AS400BaseRepository`1.ExecuteCallWithSingleInputAndOutputParam[TResult](String callName, String callParamsAsString) in C:\TFSAgents\WEB-Agent-2\_work\48\s\As400Adapter\Repositories\Base\AS400BaseRepository.cs:line 148
   at As400Adapter.Repositories.WorkOrderInputLineRepository.GetInputLinesForWorkOrder(String workOrderId) in C:\TFSAgents\WEB-Agent-2\_work\48\s\As400Adapter\Repositories\WorkOrderInputLineRepository.cs:line 44
   at WebApi.Controllers.WorkOrderController.GetWorkOrder(String workOrderId) in C:\TFSAgents\WEB-Agent-2\_work\48\s\WebApi\Controllers\WorkOrderController.cs:line 45
   at lambda_method215(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

https://stackoverflow.com/a/37388198

Cause: Old iSeries driver!

Download latest driver from IBM, named ‘IBMiAccess_v1r1_WindowsAP_English.zip

55470cookie-checkArithmetic operation resulted in an overflow