FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Mensaje de error ADO
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Mensaje de error ADO
Posted: Fri Nov 29, 2013 12:44 AM
amigos del foro tengan buena noche...

Es que de momento me comenzo a salir este error, pero no se por que es?

Si alguien tiene conocimiento que lo causa se lo agradeceria.

Saludos

Code (fw): Select all Collapse
Descripci贸n de la Applicaci贸n:
___________________________________________________

Ubicaci贸n y Nombre: C:\DlymAdo.1\Contable.Exe (32 BITS)
Desde la Estaci贸n de Trabajo: CASA
Usuario en Sesi贸n: 001
Privilegio del Usuario: 001
Tama帽o: 1,398,784 bytes
Hora de Inicio: 聽 Jueves 28 de Noviembre del 2013, 聽7:42:12 PM
Hora del Error: 聽 Jueves 28 de Noviembre del 2013, 聽7:42:12 PM
Tiempo de Sesi贸n: 0 hours 0 mins 16 secs


Descripci贸n del Error:
___________________________________________________

Error ADODB.RecordSet/3
DISP_E_MEMBERNOTFOUND: UPDATE
聽 聽Args:


Llamadas al Stack:
___________________________________________________

Llamado desde TOLEAUTO:UPDATE(0)
Llamado desde PGRABCJA(318)
Llamado desde PVALICJA(260)
Llamado desde (b)PMODICAJ(436)
Llamado desde TBUTTONBMP:CLICK(157)
Llamado desde TBUTTON:HANDLEEVENT(1654)
Llamado desde TBUTTONBMP:HANDLEEVENT(189)
Llamado desde _FWH(3153)
Llamado desde SENDMESSAGE(0)
Llamado desde TDIALOG:COMMAND(379)
Llamado desde TWINDOW:HANDLEEVENT(0)
Llamado desde TDIALOG:HANDLEEVENT(886)
Llamado desde DIALOGBOX(0)
Llamado desde TDIALOG:ACTIVATE(270)
Llamado desde PMODICAJ(470)
Llamado desde (b)TLYMA:AUTORIZA(1117)
Llamado desde TLYMA:AUTORIZA(1117)
Llamado desde (b)BARRACAJA(116)
Llamado desde TBTNBMP:CLICK(465)
Llamado desde TBTNBMP:LBUTTONUP(656)
Llamado desde TCONTROL:HANDLEEVENT(1690)
Llamado desde TBTNBMP:HANDLEEVENT(1408)
Llamado desde _FWH(3153)
Llamado desde WINRUN(0)
Llamado desde TWINDOW:ACTIVATE(980)
Llamado desde MAIN(494)
Llamado desde R32_MENU(141)
Saludos
LEANDRO AREVALO
Bogot谩 (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Mensaje de error ADO
Posted: Fri Nov 29, 2013 01:47 PM

Leandro

ADO errors can be very frustrating because they are very vague... Some things to look for:

1) Field spelling error
2) The value you are saving to a field is greater than the length of the field in your table
3) you might have a validation rule on one of your table fields that require a specific value be inserted
4) you may have a field that can not be left null .. in other words it can not be left blank
5) valtype mismatch
6) look at your primary key .. is it a value you must insert or is it automatically created
7) a disturbance in the 'force' :)

Unfortunately if you are saving lots of values to a table, there is no good way to determine which one is causing you the problem. At times I have had to resort to just start at the top of your Update and rem out each value til you find the offending line.

Rick Lipkin

Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: Mensaje de error ADO
Posted: Fri Nov 29, 2013 10:35 PM

Gracias Rick por la informaci贸n

Voy a hacer lo que comentas... verificar linea por linea.

Luego te comento como me fue.

Saludos
LEANDRO AREVALO
Bogot谩 (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: Mensaje de error ADO
Posted: Tue Dec 03, 2013 01:57 PM
Finalmente me toco cambiar el c贸digo por que no encontr茅 el error... cambie el c贸digo y se soluciono el problema
realmente no se por que pero me funciono. el codigo quedo de la siguiente manera:

Code (fw): Select all Collapse
************************************
*Graba los datos en la base de datos
************************************
PROC pGrabCja()

uFec:=date()
uFe2:=dtos(date())
uTim:=subs(time(),1,8)
uCou:=alltrim(oLamcla:vCous)

IF oLamcla:vgraba=.t.



聽 vConsCB:="INSERT INTO "+oLamcla:tCaja+" (kk_codigo,kk_nombre,kk_usuari,kk_docume,kk_conimp,kk_datser,kk_consec,kk_baseca,kk_bodega,kk_copfac,kk_copcie,kk_docnot,umovim,usuari,ufecha,uhoras) VALUES ('"+alltrim(oB2vg1)+"','"+alltrim(oB2vg2)+"','"+alltrim(oLamcla:vGUsua)+;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 "','"+alltrim(oLamcla:vGDofa)+"','"+oLamcla:clogtovar(oT1vc2)+"','"+oLamcla:clogtovar(oT1vc3)+"',"+alltrim(str(oB2vg3))+;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 ","+alltrim(str(oB2vg4))+",'"+alltrim(oLamcla:vGBode)+"',"+alltrim(str(oB2vg5))+","+alltrim(str(oB2vg5))+",'"+alltrim(vGDoNo)+;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 "',0,'"+alltrim(uCou)+"','"+alltrim(uFe2)+"','"+alltrim(uTim)+"')"
聽 TRY
聽 聽 oLamcla:oServer:Execute(vConsCB)
聽 CATCH oError
聽 聽 MsgInfo(oLamcla:mRegi,oLamcla:mDato)
聽 END


ELSE

聽 vConsCB:="UPDATE "+oLamcla:tCaja+" SET kk_nombre='"+alltrim(oB2vg2)+"',kk_usuari='"+alltrim(oLamcla:vGUsua)+"',kk_docume='"+alltrim(oLamcla:vGDofa)+;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"',kk_conimp='"+oLamcla:clogtovar(oT1vc2)+"',kk_datser='"+oLamcla:clogtovar(oT1vc3)+"',kk_consec="+alltrim(str(oB2vg3))+;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽",kk_baseca="+alltrim(str(oB2vg4))+",kk_bodega='"+alltrim(oLamcla:vGBode)+;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"',usuari='"+uCou+"',ufecha='"+uFe2+"',uhoras='"+uTim+"',kk_docnot='"+alltrim(vGDoNo)+"',kk_copfac="+alltrim(str(oB2vg5))+",kk_copcie="+alltrim(str(oB2vg6))+;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽" WHERE kk_codigo='"+alltrim(oB2vg1)+"'"
聽 TRY
聽 聽 oLamcla:oServer:Execute(vConsCB)
聽 CATCH oError
聽 聽 MsgInfo(oLamcla:mRegi,oLamcla:mDato)
聽 END

ENDIF
oLamcla:oRsCajaRg:Requery()
oLamcla:oBrwCReg:Refresh()
oCuadr1:end()


Gracias a todos por responder
Saludos
LEANDRO AREVALO
Bogot谩 (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]

Continue the discussion