Focal Point
ReportCaster: Task error: VALUE FOR JOIN FROM FIELD OUT OF SEQUENCE. RETRIEVAL ENDED

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

February 07, 2011, 08:41 AM
ABT
ReportCaster: Task error: VALUE FOR JOIN FROM FIELD OUT OF SEQUENCE. RETRIEVAL ENDED
Getting "Task error: VALUE FOR JOIN FROM FIELD OUT OF SEQUENCE. RETRIEVAL ENDED" in reportcaster job only. When Run directly from DevStudio, no errors. What could cause this?


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
February 07, 2011, 10:20 AM
Francis Mariani
ReportCaster tasks stop at the first encountered error, WebFOCUS programs just continue unless you trap the error.

There is a setting to exclude certain WebFOCUS error codes from stopping the RC task:

ReportCaster Admin Console > ReportCaster Server Administration > General tab > FOC Message Numbers to Be Processed as Warnings. We have the following FOC Message Numbers coded here: 201, 36359, 757, 837, 95, 96, 1547, 1568 (the first six are the default numbers).


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
February 07, 2011, 10:34 AM
GamP
The cause of this message is of course that the sequence of the joined files is not exactly the same. At the first record in the referenced file that offends the sequence of the host file, this error is givenand processing stops. You'd best check the process steps to ensure the joined files indeed will have the same sort order for the joined fields.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
February 07, 2011, 10:54 AM
ABT
@Francis,
I'll take that under advisement as I will soon be undertaking a project that will benefit from reporting/reading error levels and that info will be very useful.

@GamP,
I've created a side job (so as to be able to make edit w/o messing with Production) and scheduled that through ReportCaster. I have -EXIT'd starting from the top and crawling to the bottom and have isolated the step that throws the error. It is pretty Vanilla. I have commented out the original join and used the GUI to produce it as it should look. The only thing that comes to mind is that I vaguely recall hearing that compound joined fields can give errors and that you should try to concatenate them for the join. I'm not sure if this is that error, but I am off to try that next.

quote:

DEFINE FILE CPM2
PROCTYPE/A10 = IF CABGTYPE2 GT ' ' THEN CABGTYPE2 ELSE
IF CABGTYPE GT ' ' THEN CABGTYPE ELSE
IF PROCTYPE1 EQ 'CABG' THEN 'CBGB' ELSE PROCTYPE1;
END
TABLE FILE CPM2
PRINT
PROCTYPE
CASS_PATSTATUS
CASS_CODE
CASS_ASASCOREID
CASS_CODE
CP_SURNUM
CP_PROCCODE
EMP_LASTNM
EMP_FIRSTNM
CP_PROCCODE
PMF_DESCRP
OR_ROOM
TIME_CON_SDATE
ST_TIME
TIME_CON_EDATE
SURG_END_DATE
END_TIME
WC
SH_MEDREC
PTNAME
CABGTYPE
-* GNODE_DESCRP

BY SH_ACCOUNT
BY SURG_START_DATE
ON TABLE HOLD AS PROCORM2

END


quote:

TABLE FILE CRINFO
PRINT SERVICEDATE
INTERNALCASEID
HEIGHT
WEIGHT
ASASTATUS
ACCOUNTNUMBER
CRSURG_DATE
PATIENTNAME
MEDICALRECORDNUMBER
GENDER
DOB
ADMISSIONDATE
DISCHARGEDATE
BY ACCOUNTNUMBER
BY CRSURG_DATE
ON TABLE HOLD AS CRINFO2

END


quote:

-*JOIN SH_ACCOUNT AND SURG_START_DATE IN PROCORM2 TO
-*ACCOUNTNUMBER AND CRSURG_DATE IN CRINFO2
-*END

JOIN CLEAR *

JOIN
PROCORM2.PROCORM2.SH_ACCOUNT AND PROCORM2.PROCORM2.SURG_START_DATE IN PROCORM2
TO CRINFO2.CRINFO2.ACCOUNTNUMBER AND CRINFO2.CRINFO2.CRSURG_DATE
IN CRINFO2 TAG J2 AS J2
END


Anything else I could be doing wrong? Is it the compound join? This seems very simple, not sure why it's failing.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro