引入-批量保存操作 : 与当前连接相关联的事务已经完成,但尚未释放。必须先释放该事务,然后才能使用该连接来执行 SQL 语句。
Server stack trace:
在 System.Data.SqlClient.SqlInternalConnectionTds.CheckEnlistedTransactionBinding()
在 System.Data.SqlClient.TdsParser.TdsExecuteSQLBatch(String text, Int32 timeout, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean sync, Boolean callerHasConnectionLock)
在 System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
在 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
在 System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
在 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.DBUtils.Execute(Context ctx, String strSQL)
在 Kingdee.BOS.App.Data.DBUtils.CreateSessionTemplateTableIndex(Context ctx, String indexSql)
在 Kingdee.K3.BD.App.Core.AppBusinessService.SerialMasterUpdator.MatchSerialToTempTable()
在 Kingdee.K3.BD.App.Core.AppBusinessService.SerialMasterUpdator.DoUpdateAction(DynamicObject billDataEntity, Boolean onlyUpdateExixtsExInfo)
在 Kingdee.K3.BD.App.Core.AppBusinessService.SaveBillSerialService.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 [0]:
在 Kingdee.BOS.Business.DynamicForm.PlugIn.Import.ImportEngine.DoSaveBillData(Dictionary`2 relateRows, DynamicObject[] objs, List`1 lstDy, InputOutputParameter importParameter, Boolean isImportGroup, OperateOption option, List`1 failRelateRows, IOperationResult allResult)
在 Kingdee.BOS.Business.DynamicForm.PlugIn.Import.ImportEngine.ImportData(Context ctx, IDynamicFormView view, FormMetadata formMetadata, InputOutputParameter importParameter, DataSet& failDataSet, List`1 matchfields)
点了确定发现数据没有导入进去,再次导入还提示这个,是什么原因导致的呢?
推荐阅读