ERP系统教程网

  • 首页
  • 金蝶ERP教程
  • 财务知识
  • 会计实务
  • 财经要闻
  • 法律百科
  • 资源下载
    • 金蝶培训资料
    • 金蝶工具下载
    • 金蝶安装包下载
  1. 首页
  2. 金蝶ERP教程
  3. 正文

金蝶名称代码在系统中已被使用的解决方法

2020年11月24日 163点热度 0人点赞 0条评论

金蝶软件使用过程中,提示名称代码在系统中已被使用,FX 列在多次出现的列名中无效...的解决方法

 

解决方法:  

第一,常见原因是核算项目横表中核算项目个数与 F 列不对应导致的,可通过以下语

句进行修复(直接在查询分析器针对问题账套执行即可),

select * from t_itemdetail

exec sp_cleanitemdetailvGO

update a set a.fdetailcount=b.Fcount

from  t_itemdetail  a  join  (select  Fdetailid,count(*)  as  Fcount  from  t_itemdetailv

where fitemid=-1 group by Fdetailid) b

on a.fdetailid=b.fdetailid  where a.fdetailcount<>b.Fcount

说明:如果已有部分凭证进行了过账,请先通过期末处理功能反结账到上期,

再执行以上 SQL 语句,再进行凭证过账、结账。

 

第二,如果客户环境安装了 MSDE,那么请将以上SQL语句保存为*.sql 的文件,通过

账套管理执行,操作路径:账套管理->选中问题账套->操作菜单,执行命

令->选择*.sql 文件->执行即可。

1、凭证过账时系统提示:名称或代码在系统中已经被使用 

错误代码:3604(E14H) 

Source :Microsoft OLE DB Provider for SQL Server 

Detail :在结果列的列表中多次出现列名 'F8' 

执行语句校正即可 

update d set d.fdetailcount=v.fcount 

from t_ItemDetail d, 

(select fdetailid,count(*) fcount from t_ItemDetailv where fitemid=-1 group by fdetailid ) v 

where d.fdetailid=v.fdetailid 

不同的账套,可能会提示不同的列名,如F1等,请变通执行 

错误原因:核算项目横表t_itemdetail的核算项目类别数目和科目挂的核算项目数目不一致 

2、在查询科目余额表并选择包括核算项目时,系统提示: 

名称或代码在系统中已被使用 

错误代码:3604(E14H) 

Fdetail:列名'F3001'无效 

补回此列,如果有数据发生还要补回数据 

If Not Exists(Select c.Name from syscolumns c,sysobjects o 

where c.Id=o.Id and c.name='F3001' and o.name='t_ItemDetail') 

Begin 

Alter Table t_ItemDetail Add F3001 int not null default(0) 

Create Index ix_ItemDetail_3001 On t_ItemDetail(F3001) 

END 

如果还存在其他列名无效,参照修改上述SQL中的列名后,进行添加。 

错误原因:在t_itemdetail表中缺少列F3001 

3、录入凭证时提示错误代码:3604(E14H), Source :Microsoft OLE DB Provider for SQL Server Detail :分布式事务已完成。请将此会话登记到新事务或 NULL 事务中 

此问题是由凭证最大内码号超过2147483647造成的,请参考以下SQL处理 

select distinct(fvoucherid) AS Foldid,IDENTITY(int,1,1) as fnewid into #tmpa from t_voucher----建立新旧凭证内码对应关系 

update a set a.fvoucherid=b.fnewid from t_voucher a , #tmpa b where a.fvoucherid=b.folded-----用新内码替换旧内码 

update a set a.fvoucherid=b.fnewid from t_voucherentry a , #tmpa b where a.fvoucherid=b.foldid 

update t_identity set fnext=(select max(fvoucherid) from t_voucher)+1 where fname='t_voucher' 

凭证无法过账、账薄报表无法查询、无法结转损益结转损益之后无法过帐或仍有余额,提示:在结果列中多次出现F1,名称或代码已存在等 

一般是fdetailcount数目不对或者相同的核算项目组合出现重复,对于错误fdetailcount,首先要执行如下语句进行更新: 

exec sp_cleanitemdetailv--横表生成纵表的存储结构 

update a set a.fdetailcount=b.Fcount from t_itemdetail a join (select Fdetailid,count(Fitemid) Fcount from t_itemdetailv where fitemid<>0 group by Fdetailid) b on a.fdetailid=b.fdetailid--更新fdetailcount 

exec sp_cleanitemdetailv--重新生成纵表 作了以上更新后发现表中还存在相同组合的重复记录,这是不允许的: 

而我们只需要保留一个fdetailid即可,此时我们取最小的fdetailid, 

执行如下语句更新科目表: 

update t_account set Fdetailid =(select min(fdetailid) from t_itemdetail where fdetailid in (select Fdetailid from t_itemdetailv where fitemid=-1) and Fdetailcount=1 and F2=-1 ) where Fdetailid in (select (fdetailid) from t_itemdetail where fdetailid in (select Fdetailid from t_itemdetailv where fitemid=-1) and Fdetailcount=1 and F2=-1 ) 

同时我们还要删除核算项目横表中的多余记录,执行如下语句: 

delete from t_itemdetail where Fdetailid in(select (fdetailid) from t_itemdetail where fdetailid in (select Fdetailid from t_itemdetailv where fitemid=-1) and Fdetailcount=1 and F2=-1 ) and Fdetailid <>(select min(fdetailid) from t_itemdetail where fdetailid in (select Fdetailid from t_itemdetailv where fitemid=-1)and Fdetailcount=1 and F2=-1 ) exec sp_cleanitemdetailv--重新生成纵表 

另外还要查看各余额表中有没有非法的fdetailid,即不在核算项目横纵表中的,有的话则需要删除: 

--查找科目余额表中有没有非法的fdetailid 

select * from t_balance where fdetailid not in (select fdetailid from t_itemdetail) 

--删除科目余额表中非法的fdetailid delete from t_balance where fdetailid not in (select fdetailid from t_itemdetail) 

同理进行以下操作 查找数量余额表中有没有非法的fdetailid 

select * from t_quantitybalance where fdetailid not in (select fdetailid from t_itemdetail) 

删除数量余额表中非法的fdetailid 

delete from t_quantitybalance where fdetailid not in (select fdetailid from t_itemdetail) 

查找损益类科目实际发生额表中有没有非法的fdetailid 

select * from t_profitandloss where fdetailid not in (select fdetailid from t_itemdetail) 

删除损益类科目实际发生额表中有没有非法的fdetailid 

delete from t_profitandloss where fdetailid not in (select fdetailid from t_itemdetail) 

根据F列进行变通,可以通过下面的语句查查 

select * from t_itemdetail where fdetailid in (select fdetailid from t_itemdetailv where fitemid=-1) 

标签: 名称代码 金蝶软件
最后更新:2020年11月24日

fengjun

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

猜你喜欢

  • 打开金蝶提示路径和驱动器。432:Automation 操作期间未找到文件和类名

  • 金蝶软件为什么这么多问题?

  • 安装金蝶软件提示是否要完全删除所选应用程序及组件

  • 金蝶软件核算项目常见问题及数据结构分析

  • 金蝶软件很难学吗?

  • 金蝶软件的服务费每年必须交吗?

  • 金蝶软件各版本安装包下载合集

  • 快速了解金蝶软件各版本的功能区别

  • 金蝶正版和金蝶演示版的区别

  • 深圳哪里买金蝶软件?

  • 金蝶软件难学吗

  • 如何卸载删除金蝶软件?

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

最新 热点 随机
最新 热点 随机
人体轻微伤的鉴定标准(人体损伤程度鉴定标准) 合同扫描件有法律效力吗(合同复印件的法律规定) 反诉是什么意思(构成反诉的条件) 企业法律服务一年多少钱(公司法务代理一年的费用) 可转债赎回是什么意思(可转债强制赎回的解释) 工程款优先受偿权最新规定(工程优先受偿权顺序) 轻微伤怎么判刑和赔偿(轻微伤鉴定标准细则及量刑) 无限连带责任担保是什么意思(担保人承担无限连带责任规定) 工伤员工解除劳动合同有什么赔偿(工伤后解除劳动合同的法律规定) 工伤保险怎么理赔(工伤保险赔偿标准) 被告可以申请追加被告吗(民法典被告追加被告的规定) 旷工多少天可以解除劳动合同(劳动法对旷工的规定) 民事诉讼法解释全文(2022年最新民事诉讼法释义) 公诉案件和自诉案件的区别(公诉案件司法解释) 正当防卫案例分析(正当防卫的例子通俗易懂)
农村养老保险新政策(农村个人养老保险缴费标准)在建工程和制造费用如何结转?-会计实务-用友财务软件免费试用版下载辞退福利全部计入当期损益吗?-会计实务-用友财务软件免费试用版下载城建税会计分录怎么做?-会计实务-用友财务软件免费试用版下载金蝶云期末业务关账的作用?先进先出法结存材料成本会计分录-会计实务-用友财务软件免费试用版下载销售原材料怎样结转成本?-会计实务-用友财务软件免费试用版下载三人合伙做生意合同协议书(合伙做生意合同协议书范本)物业费开专票还是普票?-会计实务-用友财务软件免费试用版下载刑法第三章二百六一条是什么(刑法第三章二百六一解释)法定代表人证明书模板(公司法人证明书格式)如何设置金蝶kis中某一客户的业务员和部门信息,使录入单据的时候自动带出业务员和部门的信息?单位公休假国家规定(公务员请假条格式范文)商住楼产权年限是多少年(有关商住楼产权的法律规定)带息负债比率多少合适?-会计实务-用友财务软件免费试用版下载
行业会计的区别是什么?-会计实务-用友财务软件免费试用版下载 职业定位的含义包含哪些?-金蝶软件维护知识-用友财务软件免费试用版下载 财务报表怎么分类-会计实务-用友财务软件免费试用版下载 登录软件时显示乱码,客户之前是正常的。-管家婆问答-用友财务软件免费试用版下载 银行账户的分类及其使用方法-会计实务-用友财务软件免费试用版下载 金蝶财务软件明细账套打问题处理方法 轻微伤量刑标准(轻微伤处罚的法律规定) 餐饮业出纳做账流程-会计实务-用友财务软件免费试用版下载 金蝶固定资产处理 --数据重写 餐饮酒店方面财务的会计处理是什么?-会计实务-用友财务软件免费试用版下载 出差车票丢了怎么报销?-会计实务-用友财务软件免费试用版下载 未认证的增值税专用发票如何做账?-金蝶软件维护知识-用友财务软件免费试用版下载 接手外账注意什么?-会计实务-用友财务软件免费试用版下载 保险法的基本原则(保险法损失补偿原则条文) 法律裁判文书格式(写判决书的法律规定)
标签聚合
解释 关于 法律 标准 范本 标准版 条例 解读 协议 条件 什么 凭证 全文 物料 怎么 合同范本 法律百科 最新 司法解释 青岛 KIS旗舰版 公司 范文 实施 科目 KIS 个人 时间 立案 认定 哪些 流程 协议书 规定 政策 单据 赔偿 旗舰版 报表 费用 意思 金蝶KIS旗舰版 固定资产 金蝶 处罚 合同 专业版 内容 模板 实施细则

COPYRIGHT © 2023 ERP系统教程网. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

粤ICP备2022155369号