Focal Point
[CLOSED] AppStudio Compound report error: THE ON FIELD IS NOT THE FIRST BY FIELD

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

May 28, 2020, 12:40 PM
cheil
[CLOSED] AppStudio Compound report error: THE ON FIELD IS NOT THE FIRST BY FIELD
Hi,

I have a compound PDF report that gets bursted through a schedule to a file location. It was running fine before our environment updated on 8202. When it runs now, the report fails and the error: (FOC36240) THE ON FIELD IS NOT THE FIRST BY FIELD shows in the scheduled email.

Any help is appreciated!

WebFOCUS App Studio version 8202

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
May 28, 2020, 12:49 PM
FP Mod Chuck
Cheil

Post your code and tell us which field you are bursting with. Even though it used to work it has always been the case that the burst field has to be the first referenced BY field in the report. So even if you have to modify the report and make that the first BY field and put NOPRINT after it to keep it from being displayed in the report the error will probably go away.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 28, 2020, 01:00 PM
cheil
field I am using to burst is MailboxName

TABLE FILE VW_CLQI_PO_SCORECARD_SUMMARY
SUM COMPUTE LT25/A3 = '<25'; NOPRINT
COMPUTE MEMBER_ATTRIBUTION1/D8C = MEMBER_ATTRIBUTION; NOPRINT
BY MAILBOXNAME NOPRINT PAGE-BREAK
-*BY PO_ID NOPRINT PAGE-BREAK
BY  SUBMEASUREDESC AS ' '
BY  PREVYEAR_PERFORMANCE_RATE AS ' '
BY  YTD_NUMERATOR/D5 AS ' '
BY  YTD_DENOMINATOR/D5 AS ' '
BY  PGIP_AVG AS ' '                                 -* New column added per request
BY  YTD_PERFORMANCE_RATE AS ' '
-*BY  NCQA_BENCHMARK_PERCENTILE_COLOR NOPRINT  		-* old column name from old table -LT
BY  PERFORMANCE_RELATIVE_PERCENTILE_COLOR NOPRINT
-*BY  NCQA__90TH AS ' '  							-* old column name from old table -LT
BY  RELATIVE_PERFORMANCE_90TH AS ' '
-*BY  NCQA__75TH AS ' '								-* old column name from old table -LT
BY  RELATIVE_PERFORMANCE_75TH AS ' '
-*BY  NCQA__50TH AS ' '								-* old column name from old table -LT
BY  RELATIVE_PERFORMANCE_50TH AS ' '
-*BY  NCQA_25TH AS ' '								-* old column name from old table -LT
BY  RELATIVE_PERFORMANCE_25TH AS ' '
-*BY  NCQA__25TH AS ' '								-* old column name from old table -LT
BY  RELATIVE_PERFORMANCE__25TH AS ' '

-*WHERE PO_NAME EQ &PO_NAME.QUOTEDSTRING;
WHERE REPORTMONTH EQ &Current_Year;
HEADING
"<PO_NAME<+0> <+0> <+0> <+0> Year to Date &YEAR - &MONTH <+0> <+0> <+0> <+0>"
"Attributed Members: <+0>Prior Year<+0>YTD<+0>YTD<+0>PGIP Average<+0>Current Year<+0>Relative Performance Benchmarks<+0>"
"<MEMBER_ATTRIBUTION1 Performance<+0>Numerator<+0>Denominator<+0>Rate<+0>Performance<+0>>=90th<+0>>=75th<+0>>=50th<+0>>=25th<+0><LT25"
" <+0>Rate<+0> <+0> <+0> <+0> Rate<+0>(5)<+0>(4)<+0>(3)<+0>(2)<+0>(0)<+0> "
ON  MAILBOXNAME SUBFOOT
-*ON PO_ID SUBFOOT
""
"Performance is based on administrative data collected and services provided thru &YEAR YTD."
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET GRWIDTH 2
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET CACHELINES 100
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
      INCLUDE = IBFS:/WFC/Repository/Informatics/CLQI_V2/Flat.sty,
$  



WebFOCUS 8
Windows, All Outputs
May 28, 2020, 01:51 PM
FP Mod Chuck
Cheil

That looks correct to me. Just for fun try it without the PAGE-BREAK.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 28, 2020, 01:55 PM
cheil
Was not able to get it to work by removing the page-break.


WebFOCUS 8
Windows, All Outputs
May 28, 2020, 02:35 PM
FP Mod Chuck
What message did it give you.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 28, 2020, 02:56 PM
cheil
(FOC36240) THE ON FIELD IS NOT THE FIRST BY FIELD Task error: IBFSException 6000: Error executing procedure CLQI_PPO_V3_BURSTING.fex No report to distribute.


WebFOCUS 8
Windows, All Outputs
May 28, 2020, 03:20 PM
FP Mod Chuck
Cheil

Since this is a compound report all reports need to be sorted by the MAILBOXNAME first so double check that they are.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 28, 2020, 04:54 PM
cheil
The MAILBOXNAME is the first by field in every report, and reran and am still receiving the same error.


WebFOCUS 8
Windows, All Outputs
May 28, 2020, 04:57 PM
FP Mod Chuck
I recommend you open a case with techsupport to get to the bottom of this. Please post how this gets resolved.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 28, 2020, 05:19 PM
cheil
Okay, thanks for the help. I will open a case for this issue.


WebFOCUS 8
Windows, All Outputs