问题现象:用友畅捷通T+财务软件升级报错,具体提示如下:升级出错,错误信息:升级脚本出错,错误信息:SQL 脚本: 11.600.000.0000 DATA_DATA_RAP_NL 出错:因为发现对象名称 'dbo.EAP_BusOperation' 和索引名称 'i_EAP_BusOperation_id' 有重复的键,所以 CREATE UNIQUE INDEX 语句终止。重复的键值为 (abaa7922-7529-4bdd-b153-24e72f493560)。

语句已终止。

解决办法:

需要删除重复的记录,根据重复的键值查询到是那一条记录,然后删除,(操作前请备份好您用友T+财务软件中的数据,可参考教程:https://www.ywufida.cn/jcufida/1389.html),示例语句如下:

delete from EAP_BusOperation where id='4D4DEBD6-970F-4C96-AF79-1DAEE720E861' and idfunctionauth='7445A7E8-2FC3-4622-AB5A-420407266418'

delete from EAP_BusOperation where id='ABAA7922-7529-4BDD-B153-24E72F493560' and idfunctionauth='7445A7E8-2FC3-4622-AB5A-420407266418'

delete from EAP_BusOperation where id='D64C7E15-A00F-4269-9BAB-31EA66C7B9CD' and idfunctionauth='447EB11F-4DA0-472A-AF78-3DE69BAE2D27'

delete from EAP_BusOperation where id='F67527FD-0B08-43C8-B794-490CE780E8CD' and idfunctionauth='447EB11F-4DA0-472A-AF78-3DE69BAE2D27'

delete from EAP_BusOperation where id='78D3DBDF-7387-4565-BFDA-4DE531BEA1D5' and idfunctionauth='786EA90A-CA50-4D6D-A5CE-8B3CA09F7C06'

delete from EAP_BusOperation where id='2AAEE2EB-54C7-4FFC-9C00-DCC9F06798BF' and idfunctionauth='7445A7E8-2FC3-4622-AB5A-420407266418'

delete from EAP_BusOperation where id='58526641-E80F-43A8-B347-6EFB4F45F20F' and idfunctionauth='786EA90A-CA50-4D6D-A5CE-8B3CA09F7C06'

delete from EAP_BusOperation where id='375BC5E1-1D29-4AE2-8FB8-585B3092CA66' and idfunctionauth='447EB11F-4DA0-472A-AF78-3DE69BAE2D27'

delete from EAP_BusOperation where id='2FEA68D2-7D47-48AB-B004-C4761EFC0E09' and idfunctionauth='447EB11F-4DA0-472A-AF78-3DE69BAE2D27'

delete from EAP_BusOperation where id='0171DA98-FD90-4A0B-8C0B-798735014A5B' and idfunctionauth='7445A7E8-2FC3-4622-AB5A-420407266418'