重现步骤

content:[11:32:28]  -------------------------------------------------------------

CODE:O1132284

Error:14_2627_1_-2146232060

SQL:RB_Product_ADDNew = ,'0','1','16647715','2','https://www.amazon.co.uk/dp/B09NXJ9X9P/ref=sspa_dk_detail_3?pd_rd_i=B09NXJ9X9P&amp;pd_rd_w=bB5y1&amp;content-id=amzn1.sym.15c0cc83-c6c5-4d44-aa3d-0de17a9f3682&amp;pf_rd_p=15c0cc83-c6c5-4d44-aa3d-0de17a9f3682&amp;pf_rd_r=62FXA6PM15PHXKS8SWEY&amp;pd_rd_wg=NHCoP&amp;pd_rd_r=37d4e947-3827-45e5-b3b9-29d0c2befefc&amp;s=kitchen&amp;sp_csd=d2lkZ2V0TmFtZT1zcF9kZXRhaWw&amp;th=1','','','8寸双孔面碗四件套(8寸双孔绿锦鲤猫碗+元宝筷架-孔雀绿+汤匙-孔雀绿+木制日式筷子)','','1','382','0','0','0','2000/1/1 0:00:00','2000/1/1 0:00:00','4429','4355','4405','0','0.00','0.00','0','0','https://irobotbox-hd1.oss-cn-hangzhou.aliyuncs.com/1/ProductImages/16647715/2023/4/14/25f75d225e5d49388cac321ca83f92fb/508a973c-f114-4345-6e8c-485e8e9f6856.jpg','10.00','50.00','0.00','0.00','0.00','0.00','0.00','0.00','','','','','<strong>Description</strong><br />

<br />

<strong>Features</strong><br />

<br />

-Color:<br />

-Material:<br />

-Size:','','','Set','1','','False','2000/1/1 0:00:00','26.000','0.00','As Shown','','0.000','-1','','','','0','2023/4/14 11:32:28',null,null,'True','','0','0','0',null,'0.0000','0.0000','0.0000','0','0.00','0.00','0','1','0','5','1','3','4355_4405_4429','双孔面碗套装','0',null,'1','陶瓷','0','False','False','','尺寸1','8寸双孔面碗四件套(8寸双孔绿锦鲤猫碗+元宝筷架-孔雀绿+汤匙-孔雀绿+木制日式筷子)','False','','0',''

MESSAGE:Violation of PRIMARY KEY constraint 'PK_RB_Product'. Cannot insert duplicate key in object 'dbo.RB_Product'. The duplicate key value is (1, 16647715).

The statement has been terminated.

0

TRACE:   在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

   在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 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, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)

   在 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)

   在 System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

   在 GotDotNet.ApplicationBlocks.Data.AdoHelper.ExecuteNonQuery(IDbCommand command)

   在 GotDotNet.ApplicationBlocks.Data.AdoHelper.ExecuteNonQuery(IDbConnection connection, CommandType commandType, String commandText, IDataParameter[] commandParameters)

   在 GotDotNet.ApplicationBlocks.Data.AdoHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, IDataParameter[] commandParameters)

   在 GotDotNet.ApplicationBlocks.Data.AdoHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues)

   在 Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues)

   在 PandaBuy.ERP.DAL.DBOperator.ExecuteADDSP(List`1 p_Body, String spName, String conn, SqlTransaction tran)   在 PandaBuy.ERP.DAL.DBOperator.E8mARE5em(SqlException  , String  )

   在 PandaBuy.ERP.DAL.DBOperator.ExecuteADDSP(List`1 p_Body, String spName, String conn, SqlTransaction tran)

   在 Dsword.Common.ProductClass.Product_ADDNew(RB_Product model_RB_Product)

   在 PandaBuy.ERP.Web.IrobotBox.Product.ProductEdit.AddProductNew()

   在 PandaBuy.ERP.Web.IrobotBox.Product.ProductEdit.ButtonSave_Click(Object sender, EventArgs e)

   在 System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e)

   在 System.Web.UI.HtmlControls.HtmlInputButton.RaisePostBackEvent(String eventArgument)

   在 System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

   在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

   在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

   在 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_product_productedit_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)

   在 System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)

   在 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. 2023-04-14 14:45:20, 由 林鸿贵 创建。
  2. 2023-04-18 15:58:40, 由 林鸿贵 编辑。
    修改了 测试责任人,旧值为 "nongjiwang",新值为 "tanhongbo"。
  3. 2023-04-19 15:18:48, 由 何建宝 指派给 吴高发。
    修改了 指派给,旧值为 "hejianbao",新值为 "wugaofa"。

    这个是获取最大ID的存储过程没有加行锁导致ID重复的,需要修改 sp_GetIncrementID存储过程,DBA执行一下这个脚本

  4. 2023-04-19 16:26:24, 由 吴高发 解决,方案为 程序BUG 。
    修改了 解决方案,旧值为 "",新值为 "code"。
    修改了 解决日期,旧值为 "",新值为 "2023-04-19 16:24:27"。
    修改了 指派给 ,旧值为 "wugaofa",新值为 "linhonggui"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "wugaofa"。
    sp_GetIncrementID存储过程中表RB_Product 已加with(rowlock)
  5. 2023-04-19 16:32:47, 由 林鸿贵 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "linhonggui",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "linhonggui"。
    修改了 关闭日期,旧值为 "",新值为 "2023-04-19 16:32:47"。
    相关功能验证正常,后续再观察是否有同样的问题
  6. 2023-11-17 09:26:05, 由 刘超 编辑。
    修改了 所属模块,旧值为 "1810",新值为 "1852"。
所属项目 技术中心-需求池
所属模块 供应链   产品采购   产品库
所属计划
所属迭代
Bug类型 程序BUG
严重程度 严重
优先级 P0
Bug状态 已关闭
业务部门
影响功能
开发责任人
测试责任人 tanhongbo
解决时效 0
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2023-04-19 16:32:47
截止日期 0000-00-00
上线时间
上线时效
操作系统 Windows
浏览器 firefox系列
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 林鸿贵 于 2023-04-14 14:45:20
影响环境 测试环境-测试反馈
由谁解决 吴高发 于 2023-04-19 16:24:27
解决版本
解决方案 程序BUG
由谁关闭 林鸿贵 于 2023-04-19 16:32:47
最后修改 刘超 于 2023-11-17 09:25:35
相关Bug