应付单生成时报:
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()
推荐阅读