当前位置:首页 > 用友知识堂 > 正文内容

用友T+升级报错:对象名称 'dbo.GL_ReferenceDocClass' 和索引名称 'ix_code' 有重复的键

7年前用友知识堂1147

问题现象:用友畅捷通T+财务软件升级报错,具体提示如下:因为发现对象名称 'dbo.GL_ReferenceDocClass' 和索引名称 'ix_code' 有重复的键,

重复数据问题SQL 脚本: 11.510.000.0000 DATA_DSTR_FI_Vou_NL.sql 出错:因为发现对象名称 'dbo.GL_ReferenceDocClass' 和索引名称 'ix_code' 有重复的键,所以 CREATE UNIQUE INDEX 语句终止。重复的键值为 (01)。语句已终止。

解决办法:根据重复的键值,找到重复的记录,然后删除(操作前请备份好您用友T+财务软件中的数据,可参考教程:https://www.zzerp.net/jcufida/1389.html),示例语句如下:

微信号:yyrjlls
扫码 有偿解决 用友软件技术问题!
复制微信号

if((select COUNT(code) from GL_ReferenceDocClass where code ='01')>1)

begin

delete from GL_ReferenceDocClass where code ='01' and ts in

(select top 1 ts from GL_ReferenceDocClass where code ='01')

end

if((select COUNT(code) from GL_ReferenceDocClass where code ='02')>1)

begin

delete from GL_ReferenceDocClass where code ='02' and ts in

(select top 1 ts from GL_ReferenceDocClass where code ='02')

end

if((select COUNT(code) from GL_ReferenceDocClass where code ='03')>1)

begin

delete from GL_ReferenceDocClass where code ='03' and ts in

(select top 1 ts from GL_ReferenceDocClass where code ='03')

end

if((select COUNT(code) from GL_ReferenceDocClass where code ='04')>1)

begin

delete from GL_ReferenceDocClass where code ='04' and ts in

(select top 1 ts from GL_ReferenceDocClass where code ='04')

end

if((select COUNT(code) from GL_ReferenceDocClass where code ='05')>1)

begin

delete from GL_ReferenceDocClass where code ='05' and ts in

(select top 1 ts from GL_ReferenceDocClass where code ='05')

end

if((select COUNT(code) from GL_ReferenceDocClass where code ='06')>1)

begin

delete from GL_ReferenceDocClass where code ='06' and ts in

(select top 1 ts from GL_ReferenceDocClass where code ='06')

end

if((select COUNT(code) from GL_ReferenceDocClass where code ='07')>1)

begin

delete from GL_ReferenceDocClass where code ='07' and ts in

(select top 1 ts from GL_ReferenceDocClass where code ='07')

end

if((select COUNT(code) from GL_ReferenceDocClass where code ='08')>1)

begin

delete from GL_ReferenceDocClass where code ='08' and ts in

(select top 1 ts from GL_ReferenceDocClass where code ='08')

end

温馨提示:近期载地址失效频繁,如链接失效请点击此处查阅详情!

相关文章

发现对象名称 'dbo.EAP_VoucherDraft' 和索引名称 'pk_EAP_VoucherDraft' 有重复的键

问题现象:用友畅捷通T+财务软件升级报错,具体提示如下:脚本: 11.600.000.0000 DATA_DATA_RAP_NL 出错:因为发现对象名称 'dbo.EAP_VoucherDraft'...

用友T+升级报错对象名称EAP_BusOperation 和索引名称i_EAP_BusOperation_id有重复键?

问题现象:用友畅捷通T+财务软件升级报错,具体提示如下:11.51升级到12.0标准版,报错,错误信息,sql脚本11.600.000.0000 DATA_RAP_NL出错对象名称EAP_BusOp...

(11.600.000.0000) Data_DATA_PU_NL.sql 出错:列名 'idproject' 无效。

问题现象:用友畅捷通T+财务软件升级报错,具体提示如下:11.51升级到12.0,升级脚本出错,错误信息:SQL 脚本: 11.600.000.0000 Data_DATA_PU_NL.sql 出错...

用友T+升级报错:SQL 脚本: 11.600.000.0000 DATA_DPRD_FI_Search_CN.sql 出错

问题现象:用友畅捷通T+财务软件升级报错,具体提示如下:升级出错,错误信息:升级脚本出错,错误信息:SQL 脚本: 11.600.000.0000 DATA_DPRD_FI_Search_CN.sq...

(12.000.001.0032) DATA_ DATA_AA_vou_cn-24002出错:不能将值null插入列‘idunit’

问题现象:用友畅捷通T+财务软件升级报错,具体提示如下:升级出错,错误信息:sql脚本:12.000.001.0032 DATA_ DATA_AA_vou_cn-24002出错:不能将值null插入...

(12.000.001.0015) DATA_DATA_GL_Mix_NL-44001 出错

问题现象:用友畅捷通T+财务软件升级报错,具体提示如下:(12.000.001.0015) DATA_DATA_GL_Mix_NL-44001 出错,升级出错,错误信息:升级脚本出错,错误信息:sq...

发表评论

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。