网站首页 > 用友解决方案 正文
畅捷通T+升级报错:对象名称 'dbo.GL_ReferenceDocClass' 和索引名称 'ix_code' 有重复的键
admin 2017-04-23 11:04:35 用友解决方案 1423 ℃问题现象:用友畅捷通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.iyyrj.com/jcufida/1389.html),示例语句如下:
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
- 上一篇: 用友畅捷通T+手机端可不可以设置显示隐藏账套?
- 下一篇: 用友T1商贸宝连锁加盟版配货流程操作教程
猜你喜欢
- 2017-04-23 发现对象名称 'dbo.EAP_VoucherDraft' 和索引名称 'pk_EAP_VoucherDraft' 有重复的键
- 2017-04-23 畅捷通T+升级报错:对象名称和索引名称有重复的键?
- 2017-04-23 畅捷通T+升级报错:SQL 脚本: 11.600.000.0000 DATA_DPRD_FI_Search_CN.sql 出错
- 2017-04-23 畅捷通T+升级报错:208 数据库错误, 请重试!对象名 'EAP_SetupApp' 无效。
- 2017-04-23 畅捷通T+(12.000.001.0007) DATA_DPRD_GL_Vou-34033 升级报错
- 2017-04-23 畅捷通T+升级报错:CS_BankCashAccessVoucher' 已经有针对它定义的主键
- 2017-04-23 畅捷通T+(12.000.001.0044) DATA_DPRD_ST_Rpt_CN-33005 出错:子查询返回的值不止一个
- 2017-04-23 畅捷通T+升级报错:SQL 脚本: 11.510.000.0031 DATA_DSTR_GL_Vou-34006 出错
- 2017-04-23 畅捷通T+11.51升级错误:DATA_DPRD_FI_Mix_CN.sql脚本错误?
- 2017-04-23 畅捷通T+(12.000.001.0032) DATA_ DATA_AA_vou_cn-24002出错:不能将值null插入列‘idunit’
- 19006℃用友T3标准版11.0免费试用版下载地址
- 13904℃用友T3财务通普及版V11.0免费试用版下载
- 13126℃用友T3学习版免费下载及安装教程
- 20769℃真正支持win10操作系统的用友T3财务软件
- 6769℃用友T6V7.0企业管理软件免费试用版下载
- 15566℃用友畅捷通T+V12.2标准版财务软件免费试用版下载地址
- 10117℃用友U8+V12.5ERP软件系统免费下载地址_用友优普U8V12.5免费试用版
- 28740℃用友U8-U8V10.1ERP免费下载
- 标签列表