How to resolve a checkout error in TechPro
I am getting the following error when completing appointments:
There was a problem checking out service call 210512-0001.
Please review the call and the service invoice to ensure they are correct. ERROR IN obsp_TechPROCompleteCheckout String or binary data would be truncated.
System.Exception: WennSoftGP.AppointmentCheckout.CompleteCheckout - obsp_TechPROCompleteCheckout ---> System.Data.SqlClient.SqlException: There was a problem checking out service call 210512-0001.
Please review the call and the service invoice to ensure they are correct. ERROR IN obsp_TechPROCompleteCheckout String or binary data would be truncated.Checkout Details ServiceCall: 210512-0001 Appointment: 0001 Technician: CGROVES ERROR IN obsp_TechPROCompleteCheckout String or binary data would be truncated.
Update CheckoutLog Error Message: There was a problem checking out service call 210512-0001.
Please review the call and the service invoice to ensure they are correct. ERROR IN obsp_TechPROCompleteCheckout String or binary data would be truncated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at OmniByte.TechPRO.WennSoftGP.Models.AppointmentCheckout.CompleteCheckout(String Service_Call_ID, String Appointment, String Technician, Int32 CheckoutLogID, String DeviceID)
--- End of inner exception stack trace ---
at OmniByte.TechPRO.WennSoftGP.WennSoftGP.CompleteCheckout(String Service_Call_ID, String Appointment, String Technician, Int32 CheckoutLogID, String DeviceID)
at OmniByte.TechPRO.WebAPI.Controllers.ERPFullAppointmentCheckoutController.Get(Int32 checkoutLogID) in C:\BuildPool\_work\1\s\WebAPI\OmniByte.TechPRO.WebAPI\OmniByte.TechPRO.WebAPI\Controllers\ERPFullAppointmentCheckoutController.cs:line 290
Contact Customer Support. A script needs to be run in the company database to resolve this.