用友T3记账时报错,运行时错误‘-2147217873,怎么办?
用友T3财务软件在记账的时候提示错误:运行时错误‘-2147217873(80040e2f)':违反了PRIMMARY KEY 约束‘GL-mpostcond1_pk"不能在对象‘GL-Mpostcond1中键入重复键。如下图所示:
也有不少的财务会计朋友是在使用用友通T3软件的返记账过程中提示的。那么怎么解决这个问题呢?
经过用友财务软件小编跟踪数据库发现主要是软件考虑的不够周全,后来用友畅捷通在用友t+310.8plus1标准版及后续版本使用补丁做了改进了,所以解决这个问题要看版本。
如果是用友T310.8plus1之前的版本,请先在查询分析器中执行如下脚本:
use ufdata_xxx_2014
delete from gl_mpostcond1
然后再执行如下脚本,避免后续出现类似的问题。
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
ALTER Proc [dbo].[GL_P_JZA](@iPer tinyint = 11, @ccash tinyint =1, @tcond varchar(5000)= '') AS SET NOCOUNT On declare @ss varchar(8000)
declare @Checkflag varchar(20) declare @trnd bigint set @trnd=(select convert(bigint,rand()*100000000000)) declare @temptable varchar(50) declare @temptable2 varchar(50) set @temptable='GL_jztmp'+ convert(varchar(30),@trnd) set @temptable2='gl_bookB'+ convert(varchar(30),@trnd) set @Checkflag = (SELECT cvalue FROM AccInformation WHERE cSysID='GL' AND cName='bNotCheckJz')
Delete From GL_mpostcond1 if @ccash=0 begin
if @Checkflag = 'False' set @ss='SELECT iperiod,isignseq,ino_id From gl_accvouch where ibook=0 and iperiod= '+convert(char,@iPer,0) +(case when @tcond='' then '' else ' and (' + @tcond + ')' end)+' and (not (ccheck is null) and iflag is null or ccheck is null and iflag=1) GROUP BY iperiod,isignseq,ino_id' else set @ss='SELECT iperiod,isignseq,ino_id From gl_accvouch where ibook=0 and iperiod= '+convert(char,@iPer,0) +(case when @tcond='' then '' else ' and (' + @tcond + ')' end)+' and (iflag is null or ccheck is null and iflag=1) GROUP BY iperiod,isignseq,ino_id'
Insert GL_mpostcond1 exec (@ss) End Else begin if not object_id('tempdb..'+@temptable) is null exec('drop table tempdb..'+ @temptable)
if @Checkflag = 'False' set @ss='SELECT isignseq,ino_id,1 as zt into tempdb..'+@temptable+' FROM gl_accvouch inner join code ON gl_accvouch.ccode = code.ccode where ibook=0 and iperiod= '+convert(char,@iPer,0)+(case when @tcond='' then '' else ' and (' + @tcond + ')' end) +' and ((code.bbank ^ code.bcash) =1) and ((not (ccheck is null)) and (ccashier is null)) GROUP BY isignseq,ino_id Union SELECT isignseq,ino_id,0 as zt From gl_accvouch where ibook=0 and iperiod= '+convert(char,@iPer,0) +(case when @tcond='' then '' else ' and (' + @tcond + ')' end)+' and (not (ccheck is null) and iflag is null or ccheck is null and iflag=1) GROUP BY isignseq,ino_id' else set @ss='SELECT isignseq,ino_id,1 as zt into tempdb..'+@temptable+' FROM gl_accvouch inner join code ON gl_accvouch.ccode = code.ccode where ibook=0 and iperiod= '+convert(char,@iPer,0)+(case when @tcond='' then '' else ' and (' + @tcond + ')' end) +' and ((code.bbank ^ code.bcash) =1) and (ccashier is null) GROUP BY isignseq,ino_id Union SELECT isignseq,ino_id,0 as zt From gl_accvouch where ibook=0 and iperiod= '+convert(char,@iPer,0) +(case when @tcond='' then '' else ' and (' + @tcond + ')' end)+' and (iflag is null or ccheck is null and iflag=1) GROUP BY isignseq,ino_id'
exec (@ss) exec('SELECT isignseq,ino_id,sum(zt) as zt1 into tempdb..' + @temptable2 + ' from tempdb..'+@temptable+' group by isignseq,ino_id') set @ss='select '+convert(char,@iPer,0)+' as iperiod,isignseq,ino_id from tempdb..' + @temptable2 + ' Where zt1 = 0 '+(case when @tcond='' then '' else ' and (' + @tcond + ')' end) insert GL_mpostcond1 exec (@ss) if not object_id('tempdb..'+@temptable2) is null exec('drop table tempdb..'+ @temptable2) End
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
如果是用友T310.8plus1之后的版本,包括用友T310.8plus1普及版和标准版请直接安装最新的补丁就行了,补丁下载地址在论坛中有哦:http://edu.ufidawhy.com。
- 1出纳签字提示没有符合条件的凭证
- 2修改本月折旧时提示:请返回根节点?
- 3T3用友通的货位管理如何操作?
- 4用友T3出纳通打印支票时如何自动领用?
- 5T3用友通特殊会计期间如何设置
- 6用友软件T3用友通单据上的单价如何设置小数位
- 7用友通t3帮助广大小微企业提升管理能力
- 8用友T3采购入库单单价怎么自动带出参考成本?
- 9用友通t3无法恢复是怎么回事?
- 10出纳管理怎么选择多个账户进行打印
- 11T3用友通月初回冲暂估方式已结算还有回冲单
- 12怎么调整财务报表的年初数和期末数两列的顺序
- 13用友财务软件1433端口不通的解决方案(图文)
- 14为什么无法更换目标账套名称
- 15用友T3系统管理提示:运行时错误 '-2147319779(8002801d)'
- 16T3货位管理发货一个存货怎么指定多个货位
- 17用友通t3启用新一年的账需要做些什么?
- 18用友T6服装鞋帽插件V3.3Plus1试用版
- 19固定资产制单时怎么带出可抵扣税科目?
- 20输出多栏账时提示“数据列数太多(错误号:65)
- 21用友T3单机版怎么跨年做账?
- 22用友通标准版10.1免费下载地址
- 23用友软件如何设置现金流量
- 24T3用友通如何查询销售毛利
- 25用友T3如何进行汇兑损益结转?
- 26T3用友通标准版启用会计期间设置出现问题?
- 27用友T3人事通标准版10.3plus1免费下载
- 28用友T3安装在WIN7上提示用友通已停止工作
- 29用友畅捷通T+11.51免费下载
- 30为什么用友通利润表取不到数据
成都公司:成都市成华区建设南路160号1层9号
重庆公司:重庆市江北区红旗河沟华创商务大厦18楼