FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Mr.Rao. Error grave RowSet: ReQuery fwh 2102
Posts: 389
Joined: Wed Nov 29, 2006 01:51 PM
Mr.Rao. Error grave RowSet: ReQuery fwh 2102
Posted: Wed Mar 31, 2021 02:14 AM
Mr. Rao,

al hacer un oSql:Requery() con fwh nativa en la ultima version 21.02 me da error, compilando con 21.01 funciona correctamente, el codigo es este :

Code (fw): Select all Collapse
::oSqlBodyVta:ReQuery({::aSeek["desde"],::oSql:codart})


y el query es :
Code (fw): Select all Collapse
      cQuery:= "SELECT a.fecha, a.codart, b.coddis, b.codpro, CONCAT(Trim(IFNULL(b.nombre,'')),' ',Trim(IFNULL(c.nombre,''))) AS cArticulo, "+;
               "    a.codcli AS codcli, IFNULL(d.nombre,'') AS cCliente, a.cantid AS venta, IFNULL(a.terceros,0) AS vacios, a.precio, "+;
               "    a.importe, "+;
               MYCOMPROBANTE( "e", .t. )+" AS comprobante, "+;    //    "CONCAT(LEFT(e.clave,3),' 00',SUBSTRING(e.clave,4,2),'-',SUBSTRING(e.clave,6,8)) AS comprobante,  "+;
               "    0 AS codpro, '' AS cProveedor, 0 AS compra "+;
               "    FROM cvtal a "+;
               "    LEFT JOIN mart b  ON a.codart = b.codart "+;
               "    LEFT JOIN mpro c  ON b.codpro = c.codpro "+;
               "    LEFT JOIN mcli d  ON a.codcli = d.codcli "+;
               "    LEFT JOIN cregv e ON a.clave=e.clave AND a.fecha=e.fecha AND a.codcli=e.codcli "+;
               "    WHERE a.fecha = ? and a.codart = ? and ifnull(b.nostk,0)=0 "+;
               "ORDER BY cCliente, comprobante"        // "cArticulo"
      ::cQueryBodyVta:= cQuery
      ::oSqlBodyVta  := ::oServer:Rowset( cQuery, { ::aSeek["desde"], ::oSql:codart} )
      ::oSqlBodyVta:Gotop()


el error es :

Time from start: 0 hours 0 mins 9 secs
Error occurred at: 30/03/2021, 18:51:24
Error description: Error BASE/1132 Error de rango: acceso al array
Args:
[ 1] = A {SToD("20210308"),"00020108 ",2,108,"AJO/S SOLAR DEL GENERAL S.A.",109,"VISCUSSO FA ... }
[ 2] = N 16

Stack Calls
===========
Called from: .\source\internal\FWMARIA.PRG => (b)FWMARIAROWSET(1287)
Called from: .\source\internal\FWMARIA.PRG => FWMARIAROWSET:LAPPENDBLANK(0)
Called from: .\source\internal\FWMARIA.PRG => FWMARIAROWSET:CANCELAPPEND(4764)
Called from: .\source\internal\FWMARIA.PRG => FWMARIAROWSET:REQUERY(3378)
Called from: c:\sistema\proyectos\titanium\source\Planillastk.prg => (b)TPLANILLASTOCK_NEW(110)


Saludos.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Mr.Rao. Error grave RowSet: ReQuery fwh 2102
Posted: Wed Mar 31, 2021 08:46 AM

We did not make any changes in this part of the library.
However, I am trying to understand why did you get this error.

Do you know and tell me how many records were there in the query before ReQuery() is called?
Is there any way I can access the tables and work myself? (in case the data is stored in the cloud)
We will try to figure it out and fix the problem.

Regards



G. N. Rao.

Hyderabad, India
Posts: 389
Joined: Wed Nov 29, 2006 01:51 PM
Re: Mr.Rao. Error grave RowSet: ReQuery fwh 2102
Posted: Wed Mar 31, 2021 10:34 AM

Mr. Rao,

no, no hay forma q pueda acceder a los datos, son privados, y la cantidad de registros es indistinto, sucede con 0 registros o con + 0 registros.
El problema es que si no se resuelve este error no puedo usar este build.

Saludos.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Mr.Rao. Error grave RowSet: ReQuery fwh 2102
Posted: Thu Apr 01, 2021 12:49 PM

We noticed the bug.
Fixed.
We sent you revised libs. Please test and confirm.
We will publish a revised build soon.

Regards



G. N. Rao.

Hyderabad, India
Posts: 389
Joined: Wed Nov 29, 2006 01:51 PM
Re: Mr.Rao. Error grave RowSet: ReQuery fwh 2102 - CORREGIDO.
Posted: Tue Apr 06, 2021 11:01 AM

Mr. Rao,

muchas gracias por corregir el problema, funciona perfectamente ahora.

Saludos.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Mr.Rao. Error grave RowSet: ReQuery fwh 2102
Posted: Tue Apr 06, 2021 01:15 PM

I thank you for pointing out the bug.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: Mr.Rao. Error grave RowSet: ReQuery fwh 2102
Posted: Sat Apr 09, 2022 01:00 AM
ariel como lo solucionaste, tengo el mismo problema
Code (fw): Select all Collapse
#define FWVERSION    "FWH 21.02"
#define FW_VersionNo 21020
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Mr.Rao. Error grave RowSet: ReQuery fwh 2102
Posted: Sat Apr 09, 2022 10:05 AM

Please explain your problem to us, with a simple code.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: Mr.Rao. Error grave RowSet: ReQuery fwh 2102
Posted: Sat Apr 09, 2022 10:20 AM

Mr. Rao, the problem is with my version on FW.

thank.s

FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/

Continue the discussion