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.
I am joining to hold files to extract order information (both cost and retail) by skus. I'm getting the error, Unknown error occurred. Agent on reporting server EDASERVE may have crashed. Please investigate reporting server log.
The code from the first hold file is:
TABLE FILE SS_DW_SALES SUM ORDERED_QTY EXTENDED_PRICE BY ORDER_NO BY ITEM_SKU BY ROOT_LINE_ID HEADING "" FOOTING "" WHERE ( SQL_DATE GE DT(&Start_Date) ) AND ( SQL_DATE LE DT(&End_Date 23:59:59.999) ); WHERE ITEM_SKU EQ '&SiteStuff_Sku'; ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE HOLD AS DW_HOLD FORMAT FOCUS INDEX 'ROOT_LINE_ID' ON TABLE SET HTMLCSS ON
And the second:
TABLE FILE SS_F_PO_LINES_TEMP PRINT PO_NO RELEASE_NUM SUPPLIER_ID SUPPLIER_TYPE PO_QTY UOM_CODE UNIT_COST SUPPLIER_NAME SUPPLIER_SKU CUSTOMER_ID PROPERTY_ID CONVERSION_RATE Extended_Cost BY ROOT_LINE_ID HEADING "" FOOTING "" ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE HOLD AS PO_HOLD FORMAT FOCUS INDEX 'ROOT_LINE_ID' ON TABLE SET HTMLCSS ON
They are joined at the ROOT_LINE_ID field.
I'm very new to this tool and would like to understand from the report painter tool what I should do to keep this type of error from happening.
You don't need quotes around the ROOT_LINE_ID field on the hold statement.
The parent file can just be a hold format alpha. It is only important that the target be a FOCUS file and indexed.
You don't need any styling or headings/footings if you are holding data.
With all that said, that doesn't do anything to solve your problem.
We need to isolate why the agent is crashing and, let me tell you, that is not easy. So, to start I would try to run the two requests separately to see if they run alright. If they don't, try reducing the number of rows.
After you do that, let us know the results so we can figure out what to do next.
As I created this in Report Painter, anything in the code came from the tool, so why would it put quotation marks if they aren't needed? At any rate, it appears that the second hold file is where the error is occuring. The first appears to run correctly.
I don't see anything syntax-wise in the second request that would cause a problem. Is there a reason the Extended_Cost field is lower case instead of upper like the rest of the fields? Ginny also mentioned reducing the number of rows. If you add WHERE READLIMIT EQ 10 does the error still occur?
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
Keep increasing the limit until it breaks. Could you be running out of disk space? How many rows are you actually returning? Can you do a COUNT * using your WHERE conditions for each table to find out how many rows there would be in each hold file?
Sorry about all of these questions but they will help isolate the problem.
Do you have FOC2GIGDB turned on? Could your second TABLE file be returning a result set that is greater than 2 Gig in size (total file size)? If that is the case, you may be failing on exceeding the FOCSORT size limit. I see you're on version 7.6, which has unlimited FOCSORT, provided FOC2GIGDB is turned on.
Diptesh WF 7.1.7 - AIX, MVS
Posts: 79 | Location: Warren, NJ, USA | Registered: October 25, 2006
Originally posted by Diptesh Patel: Do you have FOC2GIGDB turned on? Could your second TABLE file be returning a result set that is greater than 2 Gig in size (total file size)? If that is the case, you may be failing on exceeding the FOCSORT size limit. I see you're on version 7.6, which has unlimited FOCSORT, provided FOC2GIGDB is turned on.
Yes, FOC2GIGDB is a server side setting, but I think you can also set it in your Focexec. Try setting it in the Focexec first, to see whether that resolves your problem before turning it on at the server level. Remember though that unlimited Sort file sizes have their downside. You could have a 'monster' query that may consume all available space on the server.
Diptesh WF 7.1.7 - AIX, MVS
Posts: 79 | Location: Warren, NJ, USA | Registered: October 25, 2006