产品成本计算报错
金蝶云社区-空山
空山
0人赞赏了该文章 650次浏览 未经作者许可,禁止转载编辑于2017年10月17日 09:59:38

产品成本计算报错,具体报错代码如下:,有什么方法可以解决?


Message:ExecuteReader requires an open and available Connection. The connection's current state is closed.;StackTrace:
Server stack trace:
at System.Data.SqlClient.SqlConnection.GetOpenConnection(String method)
at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command)
at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at Kingdee.BOS.App.Data.AbstractDatabase.DoExecuteReader(DbCommand command, CommandBehavior cmdBehavior)
at Kingdee.BOS.App.Data.AbstractDatabase.ExecuteReader(DbCommand command, IEnumerable`1 paramList, CommandBehavior cmdBehavior, Boolean bNewCn)
at Kingdee.BOS.App.Data.AbstractDatabase.ExecuteReader(DbCommand command, IEnumerable`1 paramList, CommandBehavior cmdBehavior)
at Kingdee.BOS.App.Data.DBUtils.ExecuteReader(Context ctx, String strSQL, IEnumerable`1 paramList, CommandType cmdtype, CommandBehavior cmdBehavior, Boolean bNewCn)
at Kingdee.BOS.App.Data.DBUtils.ExecuteReader(Context ctx, String strSQL, IEnumerable`1 paramList, CommandType cmdtype, Boolean bNewCn)
at Kingdee.BOS.App.Data.DBUtils.ExecuteReader(Context ctx, String strSQL, CommandType cmdtype, Boolean bNewCn)
at Kingdee.BOS.App.Data.DBUtils.ExecuteReader(Context ctx, String strSQL)
at Kingdee.BOS.App.Core.MetaDataLoadService.GetObjectTypeTree(String layoutViewId)
at Kingdee.BOS.App.Core.MetaDataLoadService.Load(String layoutViewId)
at Kingdee.BOS.App.Core.MetadataXmlReader.LoadFromCache(String id, Boolean bGetBaseObject, Int32 modelTypeId)
at Kingdee.BOS.App.Core.MetadataXmlReader.Load(String id, Boolean runtime, Boolean loadEmbedRefObject, Boolean getBaseObject, Int32 modeltypeId, Boolean isLoadSubObject)
at Kingdee.BOS.App.Core.MetaServicePlugIn.FormMetaServicePlugIn.CreateFieldRefProperties(FormMetadata formMetaData)
at Kingdee.BOS.App.Core.MetaServicePlugIn.FormMetaServicePlugIn.OnLoadEmbedRefObject(AfterReadArgs e)
at Kingdee.BOS.App.Core.MetaDataLoadService.LoadEmbedRefObject(AbstractBusinessMetadata meta)
at Kingdee.BOS.App.Core.MetadataXmlReader.Load(String id, Boolean runtime, Boolean loadEmbedRefObject, Boolean getBaseObject, Int32 modeltypeId, Boolean isLoadSubObject)
at Kingdee.BOS.App.Core.MetaDataService.Load(Context ctx, String id, String layoutViewId, Boolean bRuntime)
at Kingdee.BOS.App.Core.MetaDataService.Load(Context ctx, String id, Boolean bRuntime)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Kingdee.BOS.Contracts.IMetaDataService.Load(Context ctx, String id, Boolean bRuntime)
at Kingdee.K3.FIN.HS.App.Core.StorageAccount.CalTransInOutCost.BuildInStockEstimateFilterPara()
at Kingdee.K3.FIN.HS.App.Core.StorageAccount.CalTransInOutCost.InitAutoEstimateClass()
at Kingdee.K3.FIN.HS.App.Core.StorageAccount.CalTransInOutCost.Calculate(StorageAccountPara storagePara)
at Kingdee.K3.FIN.HS.App.Core.HookService.AutoCalOtherData(Context ctx, Boolean autoCalOtherData, StorageAccountPara paraObj, DateTime dateBegin, DateTime dateEnd)
at Kingdee.K3.FIN.HS.App.Core.HookService.WizardCalMaterialCost(Context ctx, List`1 paraList, Boolean autoCalOtherData)
at Kingdee.K3.FIN.HS.App.Core.OutStockAcctg.HSAutoCalculate.DoCalculate()
at Kingdee.K3.FIN.HS.App.Core.OutStcokCostAcctg.BeforeOutStockAcctg(Context ctx, OutStockAcctgParameters acctgParameters)
at Kingdee.K3.FIN.App.Core.OutAcctg.AbstractAcctgService.BeforeExecution[T](Context ctx, T acctgParameters)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencil.AcctgBefore[T,K](Context ctx, T acctgParameters, Dictionary`2 services, CostCalType calType)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencil.OutStockAcctg(ComputeContext ctx, CostCalGlobalContext costCalGlobalContext)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencilService.CostAcctg(ComputeContext ctx, OutStockAcctgParameters acctgParameters)