产品:Cloud 6.2
补丁:PT112639
问题描述:设定了自动分配分配任务计划,每天执行的时候报错,条件为审核日期是上周的,手工分配没有问题,任务计划分配就报错,错误信息如下:
执行出错已自动恢复; 下次执行时间:2017-10-10 20:00:00
执行出错,出错时间:2017-10-10 20:00:01;
错误信息:There are no records in the SqlDataRecord enumeration. To send a table-valued parameter with no rows, use a null reference for the value instead.;
错误堆栈: at System.Data.SqlClient.SqlParameter.GetActualFieldsAndProperties(List`1& fields, SmiMetaDataPropertyCollection& props, ParameterPeekAheadValue& peekAhead)
at System.Data.SqlClient.SqlParameter.MetaDataForSmi(ParameterPeekAheadValue& peekAhead)
at System.Data.SqlClient.TdsParser.WriteSmiParameter(SqlParameter param, Int32 paramIndex, Boolean sendDefault, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, 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.Core.OrganizationService.FilterOutAllocatedDatas(Context bosCtx, Entity rootEntity, BusinessInfo businessInfo, Form baseDataForm, String useOrgFieldName, Int64 createOrgId, Int64 allocateOrgID, List`1 pks)
at Kingdee.BOS.App.Core.OrganizationService.AllocateSolution(ComputeContext ctx, String baseId, DynamicObject planDObj, DynamicObject solutionDObj, DynamicObjectCollection autoALLOCATINFOList, Context bosCtx, Boolean isAutoRuning)
at Kingdee.BOS.App.Core.OrganizationService.AllocatePlan(ComputeContext ctx, DynamicObject planDObj, Context bosCtx, Boolean isAutoRuning)
at Kingdee.BOS.App.Core.OrganizationService.Run(Context ctx, Schedule schedule)
at Kingdee.BOS.App.Core.ScheduleService.ScheduleService.RunSchedule(Context ctx, Schedule schedule)
不知是啥意思,还望指点一二,不胜感激
推荐阅读