重现步骤

[步骤]

prometheus告警
            开始时间: 19:27:16 

            错误代码: N1927162  

            sql类型: UPDATE   

            sql: [19:27:16]  -------------------------------------------------------------
CODE:N1927162
Error:16_8152_30_-2146232060
SQL:UPDATE [RB_Procurement_Detail_SingleList] SET UpdateTime=GETDATE(), [TrackingNumber] = @TrackingNumber_1, [TrackingNumbers] = @TrackingNumbers_1 WHERE [CustomerID]=@CustomerID_1 And [Single_NO] = @Single_NO_1 ;
PARAMS:@CustomerID_1 = 1 ,@Single_NO_1 = 9743669 ,@TrackingNumber_1 = 990102827509540 ,@TrackingNumbers_1 = 990102827509540,990102827514440,990102827514351,990102827509313,990102827542793,990102827571182,990102827571035,990102827557411,990102827514416,990102827570999,990102827575371,990102827537568,990102827509305,990102827514385,990102827571051,990102827561770,990102827509389,990102827523288,990102827514369,990102827547589,990102827509339,990102827552439,990102827571205,990102827547610,990102827571027,990102827547571,990102827552421,990102827561827,990102827547628,990102827571001,990102827514424,990102827514432 ,
MESSAGE:String or binary data would be truncated.
The statement has been terminated.
TRACE: 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 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)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) 在 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
在 RB.DAL.DBOperator.ExecuteSql(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms) 在 RB.DAL.DBOperator.toCommonTipException(SqlException ex, String sql, SqlParameter[] cmdParms)
在 RB.DAL.DBOperator.ExecuteSql(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms)
在 RB.DAL.DBOperator.ExecuteSqlNoTimeOut(String SQLString, Int32 times, SqlParameter[] cmdParms)
在 RB.DALExtendV2.RB_Procurement_Detail_SingleListExtendV2.BatchUpdateTrackingNumber(List`1 models)
在 PandaBuy.ERP.Web.IrobotBox.ProcurementV2.Procurement.ProcurementBuyList.BindTrackingNumber()
在 PandaBuy.ERP.Web.IrobotBox.ProcurementV2.Procurement.ProcurementBuyList.OnPreInit(EventArgs e)
在 System.Web.UI.Page.PerformPreInit()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest()
在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
在 System.Web.UI.Page.ProcessRequest(HttpContext context)
在 ASP.irobotbox_procurementv2_procurement_procurementbuylist_aspx.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
在 System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
在 System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
在 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)



[结果]


[期望]


历史记录  
  1. 2022-12-26 10:25:56, 由 袁慧斌 创建。
  2. 2022-12-26 15:03:36, 由 胡晓龙 指派给 何建宝。
    修改了 指派给,旧值为 "huxiaolong",新值为 "hejianbao"。
  3. 2022-12-27 14:48:51, 由 何建宝 指派给 程伟。
    修改了 指派给,旧值为 "hejianbao",新值为 "chengwei"。

    销单页面更新追踪号方法,追踪号太长导致的,限制一下追踪号最大长度不要超过500

    TrackingNumbers            varchar    500    500    0    √        多个快递单号逗号分隔

  4. 2022-12-27 17:00:35, 由 程伟 指派给 谢业福。
    修改了 指派给,旧值为 "chengwei",新值为 "xieyefu"。
  5. 2022-12-27 18:32:34, 由 谢业福 添加备注。

    限制长度不出超过200个汉字 即400个字符

  6. 2022-12-27 18:33:19, 由 谢业福 解决,方案为 程序BUG 。
    修改了 解决方案,旧值为 "",新值为 "code"。
    修改了 解决版本,旧值为 "",新值为 "643"。
    修改了 解决日期,旧值为 "",新值为 "2022-12-27 18:32:41"。
    修改了 指派给 ,旧值为 "xieyefu",新值为 "linhonggui"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "xieyefu"。
  7. 2022-12-28 14:22:17, 由 林鸿贵 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "linhonggui",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "linhonggui"。
    修改了 关闭日期,旧值为 "",新值为 "2022-12-28 14:22:17"。

    相关功能验证正常

  8. 2023-11-17 09:53:55, 由 刘超 编辑。
    修改了 所属模块,旧值为 "0",新值为 "1863"。
所属项目 技术中心-需求池
所属模块 系统运维   性能优化
所属计划
所属迭代
Bug类型
严重程度 提示
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人
测试责任人
解决时效 0
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2022-12-28 14:22:17
截止日期 0000-00-00
上线时间
上线时效
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 袁慧斌 于 2022-12-26 10:25:55
影响环境 577
由谁解决 谢业福 于 2022-12-27 18:32:41
解决版本 智汇12月分支BUG
解决方案 程序BUG
由谁关闭 林鸿贵 于 2022-12-28 14:22:17
最后修改 刘超 于 2023-11-17 09:53:48
相关Bug