Focal Point
[CLOSED] Report Caster Error

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5847042526

October 17, 2012, 01:47 PM
BKR
[CLOSED] Report Caster Error
I have a report procedure that executes fine from Dev Studio but, when I schedule the report in Report Caster, and click on the Advanced button in the New Task window of the New Schedule I get the following error:

ReportCaster Error

CHARGE_DEPT IS NOT A VALID COLUMN NAME.

This prevents me getting into the Advanced button and putting in my report parameters.

This message has been edited. Last edited by: Kerry,


7.6.8, Windows XP
Excel, PDF, Active HTML, HTML, PDF
October 17, 2012, 02:06 PM
Mighty Max
Try setting DEFAULT values for all of your amper variables in the fex.


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
October 17, 2012, 02:20 PM
BKR
Ok, I'm not sure how to do that? Can you send me an example?


7.6.8, Windows XP
Excel, PDF, Active HTML, HTML, PDF
October 17, 2012, 02:22 PM
BKR
Here is an amper variable from Text Editor:

WHERE CHARGE_DEPT EQ '&DEPARTMENT.(FIND CHARGE_DEPT,CHARGE_DEPT IN nur_timecards).Department.';

What change would I have to make to set a default value?


7.6.8, Windows XP
Excel, PDF, Active HTML, HTML, PDF
October 17, 2012, 02:42 PM
jseaburn
You would set this in the beginning of your procedure using Dialogue Manager. An example: -DEFAULT &BEGINDATE = '2010/01/01'

This is how I personally do it - I'm sure others may use -DEFAULTS or -DEFAULTH


WebFOCUS 7.7.03
Linux / Universe Db
HTML/PDF/EXCEL/HTML Active
October 17, 2012, 03:17 PM
BKR
I tried the following in Dialogue Manager for my amper variables as suggested:

SET &ECHO=ALL;
-DEFAULT &DEPARTMENT = '01.701.1101000'
-DEFAULT &DATE_START = '2012-09-30'
-DEFAULT &DATE_END = '2012-10-13'

The report now has default values for my amper variables and still runs well from Dev Studio but, I still get the same error message when scheduling a new task for a new schedule.


7.6.8, Windows XP
Excel, PDF, Active HTML, HTML, PDF
October 17, 2012, 04:13 PM
Jason K.
quote:
SET &ECHO=ALL;
-DEFAULT &DEPARTMENT = '01.701.1101000'
-DEFAULT &DATE_START = '2012-09-30'
-DEFAULT &DATE_END = '2012-10-13'


quote:

ReportCaster Error
CHARGE_DEPT IS NOT A VALID COLUMN NAME.


I thought the error was for CHARGE_DEPT, you don't specify a default for that in your code that you pasted here, but you do a -DEFAULT &DEPARTMENT, your right hand is being confused by your left hand.


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
October 17, 2012, 04:20 PM
BKR
I sent the last quote in error. Here is the code in the dialogue manager:

-SET &ECHO=ALL;
-DEFAULT &CHARGE_DEPT = '01.701.1101000'
-DEFAULT &DATE_START = '2012-09-30'
-DEFAULT &DATE_END = '2012-10-13'


7.6.8, Windows XP
Excel, PDF, Active HTML, HTML, PDF
October 17, 2012, 05:16 PM
Prarie
so it's not &DEPARTMENT in the Where Statment?

it's CHARGE_DEPT EQ &CHARGE_DEPT?
October 22, 2012, 03:24 PM
BKR
It's not &DEPARTMENT in the Where Statement, it's CHARGE_DEPT EQ '&CHARGE_DEPT'


7.6.8, Windows XP
Excel, PDF, Active HTML, HTML, PDF
November 01, 2012, 11:35 AM
TexasStingray
It looks to me that what might be your problem is that we you run report from developer studio that you APP PATH might be different then when Report Caster trys to run the report. This can happen if the connection id used to connect to the report server is different when using developer studio vs report caster.




Scott

My connection id used to connect to the report server is the same when using developer studio vs report caster.


7.6.8, Windows XP
Excel, PDF, Active HTML, HTML, PDF
It looks like that caster doesn't think charge_dept is a valid field. You may want to try doing a check file on the master that you are using. Report caster may be finding an old master file for the table you are trying to report from. Even using the same ID report caster does not always seem to use the path that is set on the domain but the one that is set on the reporting server.


Webfocus 8.0.7 on Windows
Is "CHARGE_DEPT" a vaid field, available when running that fex in Dev Studio?

Suggestion: Ensure that the fex runs from within dev studio before considering ReportCaster (RC). Check "Prompt for parameters", which will force the Auto Prompting where you will provide values to you -DEFAULT'd variables. And, AFTER that works, move on over to RC.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Report Caster doesn't use any site profile settings you may have. So even with the same user connecting to the reporting server, you can have a different effective path--one that gets the straight up path for the server, and another that gets the server path+any statements in a site profile.

You can check to make sure what path the report is using by adding

WHENCE MY_MFD_NAME MASTER

which tells it to tell you the disk path to the master file. Then compare the results of that from report caster (in the log) to when it's run from dev studio. An

APP SHOWPATH

might not hurt either.


WF: WebFocus 7.7.03
Data: Oracle, MSSQL, DB2
OS: Windows
Output: HTML/AHTML,PDF,EXL2K FORMULA, COMT