當(dāng)前位置:工程項(xiàng)目OA系統(tǒng) > OA廠商 > 用友軟件 > 用友產(chǎn)品 > 用友通t3
用友T3記賬時(shí)報(bào)錯(cuò),運(yùn)行時(shí)錯(cuò)誤‘-2147217873,怎么辦?
用友T3財(cái)務(wù)軟件在記賬的時(shí)候提示錯(cuò)誤:運(yùn)行時(shí)錯(cuò)誤‘-2147217873(80040e2f)':違反了PRIMMARY KEY 約束‘GL-mpostcond1_pk"不能在對象‘GL-Mpostcond1中鍵入重復(fù)鍵。如下圖所示:
也有不少的財(cái)務(wù)會(huì)計(jì)朋友是在使用用友通T3軟件的返記賬過程中提示的。那么怎么解決這個(gè)問題呢?
經(jīng)過用友財(cái)務(wù)軟件小編跟蹤數(shù)據(jù)庫發(fā)現(xiàn)主要是軟件考慮的不夠周全,后來用友暢捷通在用友t+310.8plus1標(biāo)準(zhǔn)版及后續(xù)版本使用補(bǔ)丁做了改進(jìn)了,所以解決這個(gè)問題要看版本。
如果是用友T310.8plus1之前的版本,請先在查詢分析器中執(zhí)行如下腳本:
use ufdata_xxx_2014
delete from gl_mpostcond1
然后再執(zhí)行如下腳本,避免后續(xù)出現(xiàn)類似的問題。
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普及版和標(biāo)準(zhǔn)版請直接安裝最新的補(bǔ)丁就行了,補(bǔ)丁下載地址在論壇中有哦:http://edu.ufidawhy.com。
- 1出納簽字提示沒有符合條件的憑證
- 2修改本月折舊時(shí)提示:請返回根節(jié)點(diǎn)?
- 3T3用友通的貨位管理如何操作?
- 4用友T3出納通打印支票時(shí)如何自動(dòng)領(lǐng)用?
- 5T3用友通特殊會(huì)計(jì)期間如何設(shè)置
- 6用友軟件T3用友通單據(jù)上的單價(jià)如何設(shè)置小數(shù)位
- 7用友通t3幫助廣大小微企業(yè)提升管理能力
- 8用友T3采購入庫單單價(jià)怎么自動(dòng)帶出參考成本?
- 9用友通t3無法恢復(fù)是怎么回事?
- 10出納管理怎么選擇多個(gè)賬戶進(jìn)行打印
- 11T3用友通月初回沖暫估方式已結(jié)算還有回沖單
- 12怎么調(diào)整財(cái)務(wù)報(bào)表的年初數(shù)和期末數(shù)兩列的順序
- 13用友財(cái)務(wù)軟件1433端口不通的解決方案(圖文)
- 14為什么無法更換目標(biāo)賬套名稱
- 15用友T3系統(tǒng)管理提示:運(yùn)行時(shí)錯(cuò)誤 '-2147319779(8002801d)'
- 16T3貨位管理發(fā)貨一個(gè)存貨怎么指定多個(gè)貨位
- 17用友通t3啟用新一年的賬需要做些什么?
- 18用友T6服裝鞋帽插件V3.3Plus1試用版
- 19固定資產(chǎn)制單時(shí)怎么帶出可抵扣稅科目?
- 20輸出多欄賬時(shí)提示“數(shù)據(jù)列數(shù)太多(錯(cuò)誤號:65)
- 21用友T3單機(jī)版怎么跨年做賬?
- 22用友通標(biāo)準(zhǔn)版10.1免費(fèi)下載地址
- 23用友軟件如何設(shè)置現(xiàn)金流量
- 24T3用友通如何查詢銷售毛利
- 25用友T3如何進(jìn)行匯兌損益結(jié)轉(zhuǎn)?
- 26T3用友通標(biāo)準(zhǔn)版啟用會(huì)計(jì)期間設(shè)置出現(xiàn)問題?
- 27用友T3人事通標(biāo)準(zhǔn)版10.3plus1免費(fèi)下載
- 28用友T3安裝在WIN7上提示用友通已停止工作
- 29用友暢捷通T+11.51免費(fèi)下載
- 30為什么用友通利潤表取不到數(shù)據(jù)
成都公司:成都市成華區(qū)建設(shè)南路160號1層9號
重慶公司:重慶市江北區(qū)紅旗河溝華創(chuàng)商務(wù)大廈18樓