保存单据出现如下信息:不能在具有唯一索引‘aaRdRecords-PK’的对象‘RdRecords‘中插入重复键的行。新单据保存失败。
解决办法:
一是到ufsystem------ua_identity表中把相应帐套的IFATHERID号改大一点即可;
二也可以在查询分析器里运行如下命令:
update ufsystem..ua_identity set ufsystem..ua_identity.ichildid=(select max(ufdata_010_2007..rdrecords.autoid) from ufdata_010_2007..rdrecords)+1 where ufsystem..ua_identity.cacc_id=010 and ufsystem..ua_identity.cvouchtype='rd'
"010"为帐套号.