Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Crystal Report behaviour interpreting SQL Post Reply Post New Topic
Author Message
cLife04
Newbie
Newbie
Avatar

Joined: 02 Nov 2008
Location: Singapore
Online Status: Offline
Posts: 2
Quote cLife04 Replybullet Topic: Crystal Report behaviour interpreting SQL
    Posted: 02 Nov 2008 at 7:07pm
Hi.

I've developed and run report successfully in the Crystal Report XI, consisting a main and four sub-report. When I upload the .rpt to the server (Central Management Console) and run the report, it complains,

"Error in File SUMMARY REPORT: Error in formula . 'Local NumberVar tmpCntInv; ' This field name is not known. Details: errorKind"
----------------------

In the main report, I did normal table join and allow Crystal Report to generate the relevant SQL. However in the sub-report, I use "Add Command" function to input my own SQL statement. Below is the situation I've tested:

Scenario 1:
SELECT "TABLE1"."FIELD1" FROM "SUBFIX"."TABLE1" "TABLE1" WHERE "TABLE1"."FIELD1" = {?input1}
(Main Report (CR generated SQL))

Select field2 from table2 where field2 = {?input1}
(Sub-Report (custom SQL from Add Command))

[Failed to work... above error is displayed]



Scenario 2:
SELECT "TABLE1"."FIELD1" FROM "SUBFIX"."TABLE1" "TABLE1" WHERE "TABLE1"."FIELD1" = {?input1}
(Main Report (CR generated SQL))
SELECT "TABLE2"."FIELD2" FROM "SUBFIX"."TABLE2" "TABLE2" WHERE "TABLE2"."FIELD2" = {?input1}
(Sub-Report (CR generated SQL))

[Things are working fine...]

Appreciate if anyone is able to help in this matter... Ouch
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 03 Nov 2008 at 11:25am
Did you develop the report on the same database where it's running in the CMC or was it developed on a Development db and deployed to a Production db?  If it's two different db's, do you have "Verify on Refresh" turned on?  I suspect it's two different db's and that the structure of the one your deployed report is running against has a slightly different structure than the one you've developed on.
 
-Dell
IP IP Logged
Savan
Senior Member
Senior Member
Avatar

Joined: 14 Dec 2007
Location: India
Online Status: Offline
Posts: 162
Quote Savan Replybullet Posted: 04 Nov 2008 at 4:27am
try using  global NumberVar tmpCntInv instead of  Local NumberVar tmpCntInv
Thanks
Savan
IP IP Logged
cLife04
Newbie
Newbie
Avatar

Joined: 02 Nov 2008
Location: Singapore
Online Status: Offline
Posts: 2
Quote cLife04 Replybullet Posted: 16 Nov 2008 at 5:35pm
Thanks [-Dell] and Savan for the reply. My apology for the late reply.

I tried verifying Database on my main Crystal Report that contains both main and sub-report. One of the sub-report failed the verification. Error message as follows:

<Prompting failed with the following error message: ".>
Error source: Error code: 0x8000FFFF

I've removed all quote except those String value that needed the quote... Still the error persists...

This happens only when I tried to verify database after importing sub-report but verifying individual sub-report is working...

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.