No Data Found Error
Posted: Sun 17 Oct 2010 19:19
I just updated to 3.5.0.12 and I am now getting an Ora Error "No Data Found" being return from one of my TUniQuery's.
Steps Taken within development environment (Enable Session in Codegear XE c++ designer. Open Query and Execute.)
1) Execute Query as is. - This results in no data found error
2) Remove one field from the query (it does not matter which one) - This works without error
3) Do a NVL on one of the fields in the query and return 3 spaces. - This works for some of the records the original query did not work for but not all. (ex. NVL(Field, ' '))
My Query is below. I can not get a concrete example to send because it seems to not be consistent.
SELECT ITEMID
,MAX(ITEMDESC) ITEMDESC, GTIN, SUM(PQTY) PQTY, MAX(VALADD) VALADD, UPC, SUM(GQTY) GQTY, SUM(AUDQTY) AUDQTY, MAX(PICKLINE) PICKLINE
,MAX(GMFLAG) GMFLAG, MAX(CPCNV) CPCNV, SUM(AQTY) AQTY, MAX(PICKLOC) PICKLOC
,MAX(SHELF_PACK) SHELF_PACK
,MAX(BKWHO) BKWHO
FROM ITEM
WHERE
CRTNO = :cartNum
GROUP BY ITEMID, GTIN, UPC
ORDER BY VALADD
This is an issue that has only come up in the migration to Unidac 3.50.0.12. Has something changed in that version that would cause this issue? I am ruling out a programming error because I am running the query in the Codegear IDE without any of my program running. Also this same query runs fine when I put it into the ora developer sutdio and run it.
Any help would be appreciated. I know the explanation is not the clearest, but honestly the problem is very strange and hard to explain. Could this be a unicode issue in devart that Codegear XE Enforces? What differences in this version would be causing this issue as it has worked fine in previous issues?
Thanks
Steps Taken within development environment (Enable Session in Codegear XE c++ designer. Open Query and Execute.)
1) Execute Query as is. - This results in no data found error
2) Remove one field from the query (it does not matter which one) - This works without error
3) Do a NVL on one of the fields in the query and return 3 spaces. - This works for some of the records the original query did not work for but not all. (ex. NVL(Field, ' '))
My Query is below. I can not get a concrete example to send because it seems to not be consistent.
SELECT ITEMID
,MAX(ITEMDESC) ITEMDESC, GTIN, SUM(PQTY) PQTY, MAX(VALADD) VALADD, UPC, SUM(GQTY) GQTY, SUM(AUDQTY) AUDQTY, MAX(PICKLINE) PICKLINE
,MAX(GMFLAG) GMFLAG, MAX(CPCNV) CPCNV, SUM(AQTY) AQTY, MAX(PICKLOC) PICKLOC
,MAX(SHELF_PACK) SHELF_PACK
,MAX(BKWHO) BKWHO
FROM ITEM
WHERE
CRTNO = :cartNum
GROUP BY ITEMID, GTIN, UPC
ORDER BY VALADD
This is an issue that has only come up in the migration to Unidac 3.50.0.12. Has something changed in that version that would cause this issue? I am ruling out a programming error because I am running the query in the Codegear IDE without any of my program running. Also this same query runs fine when I put it into the ora developer sutdio and run it.
Any help would be appreciated. I know the explanation is not the clearest, but honestly the problem is very strange and hard to explain. Could this be a unicode issue in devart that Codegear XE Enforces? What differences in this version would be causing this issue as it has worked fine in previous issues?
Thanks