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.
We have a report that runs fine unless a user tries to use OLAP sorting on a particular column "Gross_Commission" in which case they get this error.
0 ERROR AT OR NEAR LINE 149 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC016) THE TRUNCATED FIELDNAME IS NOT UNIQUE: GROSS_COMMISSION BYPASSING TO END OF COMMAND (FOC009) INCOMPLETE REQUEST STATEMENT
I've searched focal point on this, and added a -SET FIELDNAME = NOTRUNC; to my report with no difference.
here's a snippet from the .fex TABLE FILE MATRIX_COMM_TBL SUM EXT_SALES_DOLLARS_COMM/P11BM AS 'Sales,TY' P1EXT_SALES_DOLLARS_COMM/P11BM AS 'Sales,LY MTD' COMPUTE LYSALES_PERC/D12.2B% = ((EXT_SALES_DOLLARS_COMM- P1EXT_SALES_DOLLARS_COMM) / EXT_SALES_DOLLARS_COMM) * 100; AS '% of LY,Sales' NET_COMMISSIONS/P11BM AS 'Net,Comm' P1NET_COMMISSIONS/P11BM AS 'LY,Net,Comm' GROSS_COMMISSION/P11BM AS 'Gross,Comm' -*P1GROSS_COMMISSION/P11BM AS 'LY,Gross,Comm' COMPUTE MARGIN_ACT_PERC/D12.2B% = ((EXT_SALES_DOLLARS_COMM- EXT_ACT_COST_COMM)/EXT_SALES_DOLLARS_COMM) * 100; AS 'Margin,Act %' COMPUTE MARGIN_ACT/P11BM = EXT_SALES_DOLLARS_COMM- EXT_ACT_COST_COMM; AS 'Margin,Act $' COMPUTE LY_MARGIN_ACT/P11BM = P1EXT_SALES_DOLLARS_COMM- P1EXT_ACT_COST_COMM; AS 'LYMargin,Act $' COMPUTE MARGIN_PERCOFCHG/D12.2B% = (((EXT_SALES_DOLLARS_COMM-EXT_ACT_COST_COMM)- (P1EXT_SALES_DOLLARS_COMM-P1EXT_ACT_COST_COMM)) / (EXT_SALES_DOLLARS_COMM-EXT_ACT_COST_COMM)) * 100; AS 'Margin,% of,LY Margin' -IF &CHR EQ 'BYMONTH' THEN GOTO BS_BYMONTH ELSE GOTO MY_ONE; -BS_BYMONTH BY HIGHEST YEARMONTH AS 'Month'
Has anyone else seen this before?
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
Is it possible your master has a field that starts with the characters GROSS_COMMISSION, that's usually when I get that type of error message when passing a define or compute.
Leah
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
Roland, You're right. I took the formatting off the field and it's running. Unfortunately,it's not really a professional report with a column of 4 decimal places while all others are integers, set with Money format.
I also find this interesting. The Fex has been set up this whole time with two columns for both Net and Gross comissions.
SUM NET_COMMISSIONS/P11BM AS 'Net,Comm' P1NET_COMMISSIONS/P11BM AS 'LY,Net,Comm' GROSS_COMMISSION/P11BM AS 'Gross,Comm' P1GROSS_COMMISSION/P11BM AS 'LY,Gross,Comm'
when I sort on the Net Comissions fields, there is no problem. The gross commission created the problem. It seems like the problem with "GROSS_COMMISSION" is deeper than this level, or the fact that it's the third field?
Any ideas?
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
Frank, That's a Great idea! Thank you. I'm not sure if I'm doing everything properly, however, as I'm getting another error of THE FIELDNAME IS NOT RECOGNIZED: GCOM when I use OLAP to sort the field. The report runs just fine initially, again the problem is only with olap.
The fex looks like this now: DEFINE FILE MATRIX_COMM_TBL GCOM/P11BM=GROSS_COMMISSION; END .... TABLE FILE MATRIX_COMM_TBL SUM NET_COMMISSIONS/P11BM AS 'Net,Comm' P1NET_COMMISSIONS/P11BM AS 'LY,Net,Comm' GCOM AS 'Gross,Comm' P1GROSS_COMMISSION/P11BM AS 'LY,Gross,Comm'
Am I doing this correctly?
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
I've seen this happen before, but it was in some older version of webfocus (think it was a 5-x release). When a request is run in OLAP mode, the entire request gets put into a javascript array and is manipulated from the java applet. It happened, that this translation into java sometimes did not produce correct code, resulting in strings being truncated. I found this by looking at the 'view source' of the htm page. In it you can see what is being put into this java applet. Maybe something happens in this case along the lines of the older problem? If that is the case, then it may help to shorten the code in the table by putting all reformatting columns into define and using the shorter syntax to create your report. Hope this helps.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
turns out that I was missing a letter on my fieldname.
Instead of gross_commission, the database field name was gross_commissionS. I changed it and it works fine now.
I expected an error of "could not find field" or soemthing of that nature, so "truncated fieldname..blah blah" through me a loop, especially since the report ran with the wrong fieldname initially and only errored on OLAP.
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.