As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
im using a PDF Drill-down report which runs another report; there are two rows of output.
if i use HTML output the drill-down works on both rows i try.
if i use PDF output the drill works on one row but not another.
so the data exists and the PDF format does work.
so whenever i try to drill on this one row in PDF it either crashes the agent straight away or runs and only returns data when you physically kill the agent.
This suggests its getting stuck in a loop despite it returning the data when HTML output is used and despite the PDF drill down working when a different row is selected.
to check this i ran the code but added:
WHERE RECORDLIMIT EQ 1
and it ran and returned one row but when i changed it to:
WHERE RECORDLIMIT EQ 2
it failed.
Im completely baffled, there is nothing logical in this error as ive proved the drilldown procedure works for both HTML and PDF output and that the data exists.
any ideas?
its driving me crackers!
Developer Studio 7.64 Win XP Output: mostly HTML, also Excel and PDF
"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
Posts: 285 | Location: UK | Registered: October 26, 2007
Does this fail regardless of the value you click on or is it always a single value that gets the error? What is the content of the record that is causing the crash? If it's only a problem when a specific set of parms is passed, maybe the record you are retrieving contains a special character that is confusing the PDF generator. Can you run the drill-down report by itself (not as a drill-down) temporarily using -DEFAULT to set the parameters to the values that are causing the problem?
Some things to start with--
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
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Originally posted by Darin Lee: Does this fail regardless of the value you click on or is it always a single value that gets the error? What is the content of the record that is causing the crash? If it's only a problem when a specific set of parms is passed, maybe the record you are retrieving contains a special character that is confusing the PDF generator. Can you run the drill-down report by itself (not as a drill-down) temporarily using -DEFAULT to set the parameters to the values that are causing the problem?
Some things to start with--
Hi Darin,
I tried to keep my original post short so didn't mention what i have done.
-it's always the same value that gives the error- the only thing that differs between the one that works and the one that doesn't is an account number.
-im not sure it's a record that is causing a crash (despite what i said about the Recordlimit) but will check that by introducing a reverse sort on the report and trying it again to see if it fails after reading the first record or whether it's something in the record itself. Either way i can view the records contents if i set the output to HTML so know the request is being accepete and there is nothing syntactically wrong with it.
-there are no special characters being used and also the report does get returned in PDF format but only after the agent is killed off manually (assuming it hasn't already crashed).
-running it by itself produces the same error.
regards
Developer Studio 7.64 Win XP Output: mostly HTML, also Excel and PDF
"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
Posts: 285 | Location: UK | Registered: October 26, 2007
If it gives the same error when running it by itself, that eliminates the drilldown from being the problem. Your next step is probably to turn on server tracing for that job (either within the job itself or within the server console) and see what, if any, errors you are getting.
One thing to try that may give a quick answer is to turn on message viewer in DevStudio. Right next to the blue "Run" button there is a drop-down arrow. Click on that and click on "Message Viewer ON" This will give you a little diagnostic box at the bottom of the window when you run your report. If ind this extremely useful when testing PDF reports. in HTML, you can -SET &ECHO=ALL; and view source, but when running PDF reports, you can't see the code that is run. Message Viewer gives you the functionality. I just leave it on all the time in Dev Studio.
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
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
yes ive been testing the output with message viewer on. As the syntax is ok and it's returning the report (once you kill the agent) the message viewer is not showing any errors in or has any lines that look out of the ordinary.
Developer Studio 7.64 Win XP Output: mostly HTML, also Excel and PDF
"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
Posts: 285 | Location: UK | Registered: October 26, 2007
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
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
The agent can't crash without something showing up in the log. If you manually kill an agent, nothing should be returned at all. IF something IS coming back, then the procedure must be running correctly. Sounds like it may be looping. When you kill it, it sends back the last completed result. Do you have any branching in the code that occurs only when you select PDF format? Possibly a duplicate label?
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
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Is it possible that one of the fields you are passing contains a single or double quote? Is "-BOLD" on your subtotal style a typo? Have you checked your variable to make sure are passing what you think you are passing '?&'?
Pat WF 7.6.8, AIX, AS400, NT AS400 FOCUS, AIX FOCUS, Oracle, DB2, JDE, Lotus Notes
Posts: 755 | Location: TX | Registered: September 25, 2007
Not sure if it makes any difference, but you're referencing a column in your stylesheet that doesn't exists in your report. Also TEXT is a reserved word in stylesheets. and DESC may be also. Try taking out the stylesheet stuf altogether and see what you get.
I also make it a habit to use a -DEFAULT for EVERY $variable that is used in my report (&DEPT, &ACCOUNT, &FINYEAR,&FINPERIOD) set to blank. Then, at least, I get a zero records if something is not passed correctly instead of an error message for a missing value. For me, anything that could cause an error is a suspect in cases like this.
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
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Does anyone know how i can wrap data other than suing wrap? the problem i ahev is that some of my users have a manaia for writing very long descriptions in free text fields such as the TEXT and DESC fields im using here.
The wrap statements is what causes my report to crash yet i really need to wrap the data, any workarounds?
Developer Studio 7.64 Win XP Output: mostly HTML, also Excel and PDF
"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
Posts: 285 | Location: UK | Registered: October 26, 2007
Just a note to say 'ive' cracked it (when i say 'ive' i mean the resident expert here at work).
What the problem was was the fact that i was trying to wrap a BY field. Now this normally works and ive proved with the same report but for certain field lengths it fails. What this means is Wrap does work until you get to a certain length field and then it crashes the agent.
I don't know what is causing that but suffice to say i didn't need to sort on that field anyway (hey, im still learning) so have managed to 'fix' my report but ultimately not the problem.
so it's one to remember.
Thanks for all your suggestsions, you certainly managed to isolate the problem to a line of style sheet code and that helped immensely!
cheersThis message has been edited. Last edited by: nubi,
Developer Studio 7.64 Win XP Output: mostly HTML, also Excel and PDF
"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
Posts: 285 | Location: UK | Registered: October 26, 2007