2024-05-14 11:27:04,256 [56] ERROR - BOS - Code:,FormId:,LoadData:
Kingdee.BOS.KDException: 费用项目An item with the same key has already been added.
at Kingdee.BOS.Core.Metadata.QueryElement.QueryInfo.AddEntity(Form form, Entity entity)
at Kingdee.BOS.Core.Metadata.QueryElement.QueryInfo..ctor(BusinessInfo businessinfo)
at Kingdee.BOS.Core.Metadata.BusinessInfo.GetQueryInfo()
at Kingdee.BOS.Web.List.ListView.InitModel()
at Kingdee.BOS.Web.DynamicForm.AbstractDynamicWebFormView.Initialize(DynamicFormOpenParameter param, IResourceServiceProvider serviceProvider)
at Kingdee.BOS.Web.List.ListView.Initialize(DynamicFormOpenParameter param, IResourceServiceProvider serviceProvider)
at Kingdee.BOS.Web.DynamicForm.DynamicWebFormController.InitObject(String pageId, String methodName)
at Kingdee.BOS.Web.List.ListController.InitObject(String formID, String layoutViewID, String methodName)
at Kingdee.BOS.ServiceFacade.ServicesStub.DynamicForm.DynamicFormService.Call(String serviceName, String pageId, String layoutId, String methodName, IList pparams, JavaScriptSerializer js, String dbId)
问题真正原因:字段标识重复
解决方法:
检查二开字段的使用情况(单据元数据\插件\转换规则\反写规则\审批流设计\审批流配置\凭证模板)等。
若需要保留,则修改标识,并修改相关使用到的地方。
若不需要保留,则移除元数据XML中的字段内容。
标签:费用,methodName,String,相同,Web,BOS,Kingdee,添加,Metadata From: https://www.cnblogs.com/zouhuaxin/p/18217507