网站首页 用友解决方案 正文
问题现象:用友畅捷通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’
你 发表评论:
欢迎- 2017-07-15安装SQL2005数据库时提示:安装汇编microsoft.VC80.ATL
- 2017-07-15关于安装MSDE2000简版的数据库如何设置SA口令
- 2017-07-15安装SQL2000数据库提示以前的某个程序安装已在安装...
- 2017-07-15安装MSSQLserver2005数据库时提示:此计算机已安装了同名实例
- 2017-07-15怎么安装MSDE2000数据库
- 2017-07-15安装MSSQLserver2005数据库时提示sql server服务无法启动?
- 2017-07-15安装用友数据库时提示:指定的实例名称无效?
- 2017-07-15Microsoft .NET Framework 2.0免费下载及安装教程
- 14691℃用友T3标准版11.0免费试用版下载地址
- 9726℃用友T3财务通普及版V11.0免费试用版下载
- 9908℃用友T3学习版免费下载及安装教程
- 16135℃真正支持win10操作系统的用友T3财务软件
- 2987℃用友T6V7.0企业管理软件免费试用版下载
- 12277℃用友畅捷通T+V12.2标准版财务软件免费试用版下载地址
- 6200℃用友U8+V12.5ERP软件系统免费下载地址_用友优普U8V12.5免费试用版
- 22976℃用友U8-U8V10.1ERP免费下载
- 标签列表
- 最近发表
本文暂时没有评论,来添加一个吧(●'◡'●)