No Data Found Error
No Data Found Error
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
I am using direct mode. I have sent an email with an oracle export file to [email protected].
The query you can use is:
SELECT ITEMID ,MAX(SUBSTR(ITEMDESC,1,35)) ITEMDESC, MAX(GTIN) GTIN, SUM(PQTY) PQTY,
MAX(VALADD) VALADD, MAX(UPC) 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
ORDER BY VALADD
Use for :cartNum: 00000316553088448229
The query you can use is:
SELECT ITEMID ,MAX(SUBSTR(ITEMDESC,1,35)) ITEMDESC, MAX(GTIN) GTIN, SUM(PQTY) PQTY,
MAX(VALADD) VALADD, MAX(UPC) 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
ORDER BY VALADD
Use for :cartNum: 00000316553088448229
Codegear XE Rad Studio
[email protected]
I will also need directions on how to install.
Just curious, What was the issue?
[email protected]
I will also need directions on how to install.
Just curious, What was the issue?
This did not fix the probelm. I have included the query I am running again as well as emailed the oracle export file to [email protected] again.
I am getting the same no data found error when I try to execute this query on the database.
I am using Rad Studio XE (c++ personality). I have tested at both design and run time. Please fix and send me another DCU to [email protected]
I am getting the same no data found error when I try to execute this query on the database.
Code: Select all
Cart Num: 00000316553088448229
Query
SELECT ITEMID ,MAX(SUBSTR(ITEMDESC,1,35)) ITEMDESC, MAX(GTIN) GTIN, SUM(PQTY) PQTY,
MAX(VALADD) VALADD, MAX(UPC) 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
ORDER BY VALADD