发生时间: 2014-07-24 02:07:39
错误编号: BOS_ExecuteReader
错误信息: 违反了 PRIMARY KEY 约束“PK__#2C0FC8F__C1BEA5A22D03ED31”。不能在对象“dbo.@PKValue_udt2”中插入重复键。重复键值为 (SAL_DeliveryNotice)。
语句已终止。
Sql语句: SELECT T_META_OBJECTTYPE.FID, T_META_OBJECTTYPE.FMODELTYPEID FROM T_META_OBJECTTYPE INNER JOIN @PKValue_udt2 t ON t.FID = T_META_OBJECTTYPE.FID;
SELECT T_META_OBJECTTYPE_L.FPkId, T_META_OBJECTTYPE_L.FLocaleId, T_META_OBJECTTYPE_L.FNAME, T_META_OBJECTTYPE_L.FID FROM T_META_OBJECTTYPE_L INNER JOIN T_META_OBJECTTYPE ON T_META_OBJECTTYPE_L.FID = T_META_OBJECTTYPE.FID INNER JOIN @PKValue_udt2 t ON t.FID = T_META_OBJECTTYPE.FID;
===================================================
调用堆栈:
Server stack trace:
在 Kingdee.BOS.App.Data.AbstractDatabase.ExecuteReader(DbCommand command, IEnumerable`1 paramList, CommandBehavior cmdBehavior)
在 Kingdee.BOS.App.Data.DBUtils.ExecuteReader(Context ctx, String strSQL, IEnumerable`1 paramList, CommandType cmdtype, CommandBehavior cmdBehavior)
在 Kingdee.BOS.App.Data.OLEDbDriver.ExecuteReader(SelectCallback callback, IEnumerable`1 tablesSchema, DbMetadataTable rootTable, IList`1 selectSqls, ReadWhere where, OperateOption option)
在 Kingdee.BOS.Orm.Drivers.DbDriverBase.Select(SelectCallback callback, IEnumerable`1 tablesSchema, DbMetadataTable rootTable, ReadWhere where, OperateOption option)
在 Kingdee.BOS.Orm.DataManager.DataManagerImplement.ReadToDataSet(IDbDriver driver, DbMetadataDatabase database, DbMetadataTable rootTable, ReadWhere where, OperateOption option)
在 Kingdee.BOS.Orm.DataManager.DataManagerImplement.Read(ReadWhere where, OperateOption option)
在 Kingdee.BOS.Orm.DataManager.DataManagerImplement.AutoBatchExecute(IEnumerable ids, OperateOption option, Func`2 func)
在 Kingdee.BOS.Orm.DataManager.DataManagerImplement.Read(IEnumerable ids, OperateOption option)
在 Kingdee.BOS.App.Core.CachedLoadReferenceObjectManager.Read(IDataEntityType dt, Object[] oids)
在 Kingdee.BOS.Orm.LoadReferenceObjectManager.DoTasks(ICollection`1 tasks, Dictionary`2 dictReferenceWhere)
在 Kingdee.BOS.App.Core.BusinessDataReader.Load(Object[] pkArray, DynamicObjectType type, Boolean loadReferenceData)
Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 Kingdee.BOS.Contracts.IViewService.Load(Context ctx, BusinessInfo businessInfo, List`1 selector, OQLFilter ofilter)
在 Kingdee.BOS.App.Security.Permission.CommonDataBuilder.GetPermissionData(IEnumerable`1 roleIds, BusinessInfo businessInfo, List`1 selectorInfo)
在 Kingdee.BOS.App.Security.Permission.FuncPermissionDataBuilder.CreateData(IEnumerable`1 lstRole)
在 Kingdee.BOS.App.Security.Permission.PermissionBuilder.PackagePermission(User user)
在 Kingdee.BOS.App.Security.Permission.PermissionLogic.CurrUserPermission(Int64 userId)
在 Kingdee.BOS.App.Security.Permission.PermissionLogic.CurrUserPermission(Int64 userId, IEnumerable`1 objectActions, PermissionType permissionType, Int64 curOrgId)
在 Kingdee.BOS.App.Security.Permission.PermissionLogic.GetAllowFuncList(Int64 userId, IEnumerable`1 objectActions, Int64 curOrgId)
在 Kingdee.BOS.ServiceHelper.PermissionServiceHelper.GetAllowFuncList(Context ctx, IEnumerable`1 objectActions, Int64 curOrgId)
在 Kingdee.BOS.Business.PlugIn.SystemMenuProxy.GetNormalUserFuncList(List`1 lstObjectAction)
在 Kingdee.BOS.Business.PlugIn.SystemMenuProxy.GetSubAdminsAndNormalUserFuncList(List`1 lstObjectAction)
在 Kingdee.BOS.Business.PlugIn.SystemMenuProxy.FilterDetailFuncByUserType(List`1 lstObjectAction)
在 Kingdee.BOS.Business.PlugIn.SystemMenuProxy.GetDetailFuncFilter(String strSubSystemId)
在 Kingdee.BOS.Business.PlugIn.SystemMenuProxy.IsAuthorisedObjectItem(String objectId, String permissionItemId, String strSubSystemId, Boolean isOrgFilter)
在 Kingdee.BOS.Business.PlugIn.SystemMenuProxy.IsAuthorisedObjectItem(String[] ids, String permissionItemId, String strSubSystemId, Boolean isOrgFilter)
在 Kingdee.BOS.Business.PlugIn.MainConsole.HomePageBase.GetSearchMenuData()
在 Kingdee.BOS.Business.PlugIn.MainConsole.HomePageSutra.setSearchMenuData()
在 Kingdee.BOS.Core.DynamicForm.PlugIn.DynamicFormViewPlugInProxy.FireCustomEvents(CustomEventsArgs e)
在 Kingdee.BOS.Web.DynamicForm.DynamicWebFormView.CustomEvents(String key, String eventName, String eventArgs)
在 Kingdee.BOS.Web.DynamicForm.DynamicWebFormController.CustomEvents(String key, String eventName, String eventArgs, JSONArray postDatas)
推荐阅读