Focal Point
Agent crash on Across fields

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

April 14, 2008, 11:34 AM
sosterle
Agent crash on Across fields
Hi everyone - I've searched "agent crash" on Focal Point and haven't seen this particular case, so I was wondering if anyone has had this happen. It's happened before, but I just removed the Across field and went on because I was in a hurry.

I've created a fairly simple procedure with two By fields and two Across fields, a Row total and Summarize. It worked just fine in 7.1.x but now causes an agent crash when we run it. If I turn the two Across fields into By fields, it runs fine.

Any ideas? Here's the code that makes it crash.

TABLE FILE INVOICE_DATA
SUM
GROSS_DISC_EXT/D12.2CM
BY MAJOR_CODE
BY LOGO_CODE
ACROSS CALENDAR_MONTH AS ''
ACROSS PRG_DIR_SO AS ''

ON MAJOR_CODE SUBTOTAL AS 'TOTAL'
HEADING
" "
WHERE CALENDAR_YEAR EQ &YEAR;
WHERE MAJOR_CODE EQ 'UNINX' OR 'UNITD' OR 'UNOVA' OR 'UNSPC' OR 'UNUHC' OR 'UNUHG' OR 'UNUNI';
ON TABLE SET PAGE-NUM OFF
ON TABLE ROW-TOTAL/D12.2CM AS 'TOTAL'
ON TABLE SUMMARIZE INVOICE_DATA.SHIPTO_ADDRESS.GROSS_DISC_EXT AS 'TOTAL'
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA,
COLUMN=ROWTOTAL(1),
STYLE=BOLD,
$
TYPE=TITLE,
STYLE=BOLD,
JUSTIFY=CENTER,
$
TYPE=TITLE,
COLUMN=ROWTOTAL(1),
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BY=1,
SIZE=11,
COLOR='BLUE',
STYLE=BOLD,
$
TYPE=ACROSSVALUE,
ACROSS=1,
STYLE=BOLD,
$
TYPE=ACROSSVALUE,
ACROSS=2,
STYLE=BOLD,
$
TYPE=ACROSSVALUE,
ACROSS=3,
JUSTIFY=CENTER,
$
TYPE=ACROSSVALUE,
COLUMN=ROWTOTAL(1),
STYLE=BOLD,
$
TYPE=ACROSSTITLE,
ACROSS=1,
JUSTIFY=CENTER,
$
TYPE=ACROSSTITLE,
ACROSS=2,
JUSTIFY=CENTER,
$
TYPE=ACROSSTITLE,
ACROSS=3,
JUSTIFY=CENTER,
$
TYPE=GRANDTOTAL,
SIZE=12,
COLOR='MAROON',
STYLE=BOLD,
$
ENDSTYLE
END


PROD: WebFocus 7.6.9 on WinXP
April 14, 2008, 12:31 PM
Darin Lee
Does the ACROSS still work if you remove the ROW-TOTAL column?

Any reason why you used SUMMARIZE instead of regular SUBTOTAL or COLUMNN-TOTAL?

Just trying to simplify things until we figure out the problem.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
April 14, 2008, 01:10 PM
sosterle
No, I tried that already. I removed the Row Total and it still crashed. No real reason for Summarize, except that I was subtotaling by Major Code and wanted to summarize the whole report as well.

I even tried removing one of the Across fields, thinking it couldn't handle two (even though it did in previous versions) and it still crashed.

Do you think I should change the Summarize to Column-Total?


PROD: WebFocus 7.6.9 on WinXP
April 14, 2008, 01:23 PM
hammo1j
Try it with recordlimit on

Across stuff kills agents when the number of across columns gets too big. See if you can stop it before that occurs with a recordlimit.



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
April 14, 2008, 01:50 PM
sosterle
I just tried with 50 on the Recordlimit and it still crashed.


PROD: WebFocus 7.6.9 on WinXP
April 14, 2008, 02:35 PM
hammo1j
I'm guessing now

quote:

DEFINE FILE INVOICE_DATA
GROSS_DISC_EXT/D12.2CM = GROSS_DISC_EXT ;
END
TABLE FILE INVOICE_DATA
SUM
GROSS_DISC_EXT
BY MAJOR_CODE
BY LOGO_CODE
ACROSS CALENDAR_MONTH AS ''
ACROSS PRG_DIR_SO AS ''

ON MAJOR_CODE SUBTOTAL AS 'TOTAL'
HEADING
" "
WHERE CALENDAR_YEAR EQ &YEAR;
WHERE MAJOR_CODE EQ 'UNINX' OR 'UNITD' OR 'UNOVA' OR 'UNSPC' OR 'UNUHC' OR 'UNUHG' OR 'UNUNI';
ON TABLE SET PAGE-NUM OFF
-* Never seen this syntax before...
-* ON TABLE ROW-TOTAL/D12.2CM AS 'TOTAL'


Maybe worth a try. It's crashing on the parse by the looks of things...



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
April 14, 2008, 02:55 PM
sosterle
Thanks. That worked, but only when I comment out the other Across field. It's still not allowing 2 Across fields.

When I built this procedure, it was in v.7.1.3 and I used 2 and sometimes 3 Across fields in a single procedure. They all ran fine.

Is the version the reason that it won't work or is there still something wrong with the code?


PROD: WebFocus 7.6.9 on WinXP
April 14, 2008, 03:26 PM
sosterle
OK, Folks -- there is definitely a ghost in the machine here.

After many frustrating moments trying to figure this out, and following some sage advice, I just gave up and re-built the blasted thing. It now works.

Beats the heck out of me, but I guess that's just going to be my standard "help desk" answer before ripping my hair out....just like they say "re-boot" I guess I'll just "re-build" LOL

Thanks for the help! See you at Summit!


PROD: WebFocus 7.6.9 on WinXP
April 15, 2008, 05:34 AM
hammo1j
sos

I remember something now when we converted to 76.

On some procs we would get spurious characters at the beginning. ds does not pick these up but if you get an editor like notepad++ with the hex editor plug in you should be able to have a look for these.

It was tres funny and has stopped now so I dont know the cause but it may be worth looking into if it occurs again.



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo