保存应付单报错
金蝶云社区-135xxxx0379
135xxxx0379
0人赞赏了该文章 839次浏览 未经作者许可,禁止转载编辑于2016年05月26日 11:37:30

老师,你好,请问以下截图报错怎样解决?只能暂存,无法保存。

版本:V5.0
补丁:2016.1.31

发生时间: 2016-05-26 11:36:27
错误编号: BOS_ExecuteNonQuery
错误信息: 不能在具有唯一索引 'IDX_BD_LOTMASTER_UNIQ' 的对象 'dbo.T_BD_LOTMASTER' 中插入重复键的行。
语句已终止。
Sql语句: INSERT INTO T_BD_LOTMASTER (FLOTID, FMasterId, FDOCUMENTSTATUS, FFORBIDSTATUS, FNUMBER, FMODIFIERID, FCREATORID, FCREATEDATE, FMODIFYDATE, FCREATEORGID, FMATERIALID, FLOTSTATUS, FBIZTYPE, FUSEORGID, FCANCELSTATUS) VALUES (@FLOTID, @FMasterId, @FDOCUMENTSTATUS, @FFORBIDSTATUS, @FNUMBER, @FMODIFIERID, @FCREATORID, @FCREATEDATE, @FMODIFYDATE, @FCREATEORGID, @FMATERIALID, @FLOTSTATUS, @FBIZTYPE, @FUSEORGID, @FCANCELSTATUS)
===================================================
调用堆栈:
Server stack trace:
在 Kingdee.BOS.App.Data.AbstractDatabase.ExecuteNonQuery(DbCommand command, IEnumerable`1 listParam)
在 Kingdee.BOS.App.Data.DBUtils.Execute(Context ctx, String strSQL, IEnumerable`1 paramList, Boolean needTranslate)
在 Kingdee.BOS.App.Data.Sql.KSqlForSqlServerTask.Execute(IDbConnection con, IDbTransaction tran)
在 Kingdee.BOS.Orm.Drivers.OrmTransactionBase.ExecuteSqlTasks(IList`1 tasks)
在 Kingdee.BOS.Orm.Drivers.OrmTransactionBase.Commit()
在 Kingdee.BOS.Orm.DataManager.DataManagerImplement.DoItInTransaction(Action`2 action, IOrmTransaction ormTransaction, OperateOption option)
在 Kingdee.BOS.App.Core.BusinessDataWriter.Save(DynamicObject[] dataEntities, IOrmTransaction tran, OperateOption option)
在 Kingdee.BOS.App.Core.SaveService.Save(Context ctx, DynamicObject[] dataEntities)
Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 Kingdee.BOS.Contracts.ISaveService.Save(Context ctx, DynamicObject[] dataObject)
在 Kingdee.K3.SCM.App.Core.LotService.GeneratrLotMasterByNumber(Context ctx, BusinessInfo billInfo, LotField lotField, ExtendedDataEntity[] entitys)
在 Kingdee.K3.SCM.App.Core.AppBusinessService.LotMasterUpdator.RefreshLotByNumber()
在 Kingdee.K3.SCM.App.Core.AppBusinessService.LotMasterUpdator.DoUpdateAction(DynamicObject billDataEntity)
在 Kingdee.K3.SCM.App.Core.AppBusinessService.UpdateLotMaster.DoAction(AppBusinessServiceArgs e)
在 Kingdee.BOS.App.Core.AbstractOprerationService.ExecuteFormBusinessService(IAppFormBusinessService iBusiness, DynamicObject dataObject, FormBusinessService service)
在 Kingdee.BOS.App.Core.AbstractOprerationService.InvokeFormBusiness(DynamicObject[] objs, Int32 iActionPoint)
在 Kingdee.BOS.App.Core.AbstractOprerationService.CallOperation(DynamicObject[]& objs)
在 Kingdee.BOS.App.Core.AbstractOprerationService.CallOperatinTransaction(DynamicObject[] objs)
在 Kingdee.BOS.App.Core.AbstractOprerationService.DoExcete()
在 Kingdee.BOS.App.Core.AbstractOprerationService.Excute(DynamicObject[] dataEntities)
在 Kingdee.BOS.App.Core.SaveService.Save(Context ctx, BusinessInfo info, DynamicObject[] dataEntities, OperateOption option, String operationNumber)
Exception rethrown at [1]:
在 Kingdee.BOS.ServiceHelper.BusinessDataServiceHelper.Save(Context ctx, BusinessInfo businessInfo, DynamicObject dataObject, OperateOption option, String operationNumber)
在 Kingdee.BOS.Model.Bill.BillModel.Save(OperateOption option)
在 Kingdee.BOS.Business.Bill.Operation.Save.ExecuteBillOperation(OperateOption option)
在 Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormOperation.Operation(CallBackWfAfterOperation callbackwf, IOperationResult result)