凭证生成时报错!所有类型凭证生成时都报错!
金蝶云社区-云社区用户h43N0783
云社区用户h43N0783
1人赞赏了该文章 753次浏览 未经作者许可,禁止转载编辑于2016年04月10日 21:57:34

应付单生成时报:
Violation of PRIMARY KEY constraint 'PK_bas_VoucherEntry'. Cannot insert duplicate key in object 'dbo.T_BAS_VOUCHERENTRY'. The duplicate key value is (104005).
The statement has been terminated.

在 Kingdee.BOS.App.Data.Sql.SqlDatabase.CopyDataToDestination(SqlConnection cn, DataTable table)
在 Kingdee.BOS.App.Data.Sql.SqlDatabase.BulkInserts(DbCommand cmd, DataTable dt)
在 Kingdee.BOS.App.Data.DBUtils.BulkInserts(Context ctx, String InsertstrSql, String CreateSql, DataTable dt)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.BuildVoucherLogic.SaveBuildVchResult.SaveBizVoucherOnly()
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.BuildBizVoucherAction.DoBatch(List`1 currBatchBillIds)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildPolicy.BuildBizVoucherAction.DoAction()
在 Kingdee.BOS.Core.BusinessPolicyModel.BusinessPolicyEngine.Do(OperateOption context)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherEngine.DoEveryTemplate(VchSelectBookInfor book, VchSelectSourceBillInfor sourceBill, VCHTemplateInfor vchTemplate, BuildResultManager resultManager, Int32 logBootLevel)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherEngine.DoEverySourceBill(VchSelectBookInfor book, VchSelectSourceBillInfor sourceBill, Int32& iBill)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherEngine.BuildVoucher(BizVchMakeSchemeInfor buildVoucherScheme)
在 Kingdee.K3.FIN.App.Core.BuildVoucher.BuildVoucherService.BuildVoucher(Context ctx, BizVchMakeSchemeInfor buildVoucherScheme)
在 Kingdee.K3.FIN.GL.ServiceHelper.BuildVoucherServiceHelper.BuildVoucher(Context ctx, BizVchMakeSchemeInfor buildVoucherScheme)
在 Kingdee.K3.FIN.GL.Business.PlugIn.BuildVoucherServiceProgressPlugIn.GenerateVoucher()