【主数据】新增供应商保存报错,提示 nameDupCheck
物料、客户、供应商都可能存在该问题,下面以供应商为例来说明如何处理:
错误信息:null
错误详细堆栈信息:java.lang.NullPointerException: null
at: com.kingdee.eas.basedata.master.cssp.client.SupplierBaseUI.nameDupCheck(SupplierBaseUI.java:3311)
at: com.kingdee.eas.basedata.master.cssp.client.SupplierBaseUI.addNewDupPromptByCSParameter(SupplierBaseUI.java:3436)
at: com.kingdee.eas.basedata.master.cssp.client.SupplierBaseUI.hintDupAddnew(SupplierBaseUI.java:3230)
at: com.kingdee.eas.basedata.master.cssp.client.SupplierBaseUI.verifyInput(SupplierBaseUI.java:3213)
at: com.kingdee.eas.framework.client.EditUI.verify(EditUI.java:882)
at: com.kingdee.eas.framework.client.EditUI.doBeforeSubmit(EditUI.java:1044)
at: com.kingdee.eas.framework.client.EditUI.actionSubmit_actionPerformed(EditUI.java:1025)
at: com.kingdee.eas.basedata.framework.client.DataBaseDEditUI.actionSubmit_actionPerformed(DataBaseDEditUI.java:215)
at: com.kingdee.eas.basedata.master.cssp.client.AbstractSupplierBaseUI.actionSubmit_actionPerformed(AbstractSupplierBaseUI.java:1308)
at: com.kingdee.eas.basedata.master.cssp.client.SupplierBaseUI.actionSubmit_actionPerformed(SupplierBaseUI.java:629)
分析答复:
该问题是由于要新增的供应商名称在系统已存在,但所属管理单元在该系统已不存在,在EAS查询分析器执行下面脚本处理:
--1. 查询该数据
select * from T_BD_supplier where FNAME_l2='要新增的供应商的名称';
--2. 备份后删除
select * into bak190628_BD_supplier from T_BD_supplier where FNAME_l2='要新增的供应商的名称';
delete from T_BD_supplier where fid = (select fid from bak190628_BD_supplier);
--3. 或者将该供应商的所属管理单元修改为系统中存在的管理单元
update T_BD_supplier set FCONTROLUNITID = '某个管理单元的fid' where FNAME_l2='要新增的供应商的名称';
或者启用查询分析器的编辑模式,然后查询该数据,修改FCONTROLUNITID的值
【主数据】新增供应商保存报错,提示 nameDupCheck
本文2024-09-22 20:12:06发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-112088.html