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 trying to feed some dropdown list boxes using SQL PASSTHROUGH fex procedure, but I got the following errors:
Error Parsing MASTER File SQLOUT((FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLOUT(205))
AND
(FOC1400) SQLCODE is 4145 (HEX:00001031) XOPEN:42000L (FOC1405) SQL PREPARE ERROR
Note that: 1) when I run the fex procedure by itself it works without any issue 2) when I run the html page that uses such SQL queries for feeding the dropdown list, it works without any issue
The code for the external procedure called in the property panel is:
-SET &ECHO=ALL;
ENGINE SQLMSS SET DEFAULT_CONNECTION RVHSSQLENT_Reporting
SQL SQLMSS PREPARE SQLOUT FOR
SELECT DISTINCT Period
FROM [RVHS_FIN_DIM_FACTS].[dbo].[FACT_ExpenseCostCentres_GL]
JOIN [RVHS_FIN_DIM_FACTS].dbo.DIM_InternalGLAccount ON [fkInternal_GLAccount] = [skInternal_GLAccount]
JOIN [RVHS_FIN_DIM_FACTS].dbo.DIM_CostCentre ON fkCostCentre=DIM_CostCentre.skCostCentre
JOIN [RVHS_FIN_DIM_FACTS].dbo.DIM_ResponsibilityReporting ON fkResponsibilityReporting=skResponsibilityReporting
LEFT JOIN [RVHS_Mapping].dbo.MAN_FIN_User ManagerTable ON Meditech_Lv2_Responsibility = ManagerTable.Name
LEFT JOIN [RVHS_Mapping].dbo.MAN_FIN_User DirectorTable ON Meditech_Lv3_Responsibility = DirectorTable.Name
LEFT JOIN [RVHS_Mapping].dbo.MAN_FIN_User VicePresidentTable ON Meditech_Lv4_Responsibility = VicePresidentTable.Name
WHERE ManagerTable.Account = '&IBIMR_user.EVAL' OR
ManagerTable.ExtraAccount = '&IBIMR_user.EVAL' OR
DirectorTable.Account = '&IBIMR_user.EVAL' OR
DirectorTable.ExtraAccount = '&IBIMR_user.EVAL' OR
VicePresidentTable.Account = '&IBIMR_user.EVAL' OR
VicePresidentTable.ExtraAccount = '&IBIMR_user.EVAL' OR
(SELECT MAX(Administrator) FROM [RVHS_Mapping].dbo.MAN_FIN_User WHERE Account = '&IBIMR_user.EVAL')=1
END
TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS SQLPRD
END
-*
TABLE FILE SQLPRD
PRINT Period
BY Period
ON TABLE PCHOLD FORMAT XML
END
Does someone have an idea?
Thanks in advance for your helpThis message has been edited. Last edited by: Kerry,
If it works when you run it on its own and when it's called by the html page, when does it NOT run?
You may code the SQL a little differently:
ENGINE SQLMSS SET DEFAULT_CONNECTION RVHSSQLENT_Reporting
SQL SQLMSS
SELECT DISTINCT Period
FROM [RVHS_FIN_DIM_FACTS].[dbo].[FACT_ExpenseCostCentres_GL]
JOIN [RVHS_FIN_DIM_FACTS].dbo.DIM_InternalGLAccount ON [fkInternal_GLAccount] = [skInternal_GLAccount]
JOIN [RVHS_FIN_DIM_FACTS].dbo.DIM_CostCentre ON fkCostCentre=DIM_CostCentre.skCostCentre
JOIN [RVHS_FIN_DIM_FACTS].dbo.DIM_ResponsibilityReporting ON fkResponsibilityReporting=skResponsibilityReporting
LEFT JOIN [RVHS_Mapping].dbo.MAN_FIN_User ManagerTable ON Meditech_Lv2_Responsibility = ManagerTable.Name
LEFT JOIN [RVHS_Mapping].dbo.MAN_FIN_User DirectorTable ON Meditech_Lv3_Responsibility = DirectorTable.Name
LEFT JOIN [RVHS_Mapping].dbo.MAN_FIN_User VicePresidentTable ON Meditech_Lv4_Responsibility = VicePresidentTable.Name
WHERE ManagerTable.Account = '&IBIMR_user.EVAL' OR
ManagerTable.ExtraAccount = '&IBIMR_user.EVAL' OR
DirectorTable.Account = '&IBIMR_user.EVAL' OR
DirectorTable.ExtraAccount = '&IBIMR_user.EVAL' OR
VicePresidentTable.Account = '&IBIMR_user.EVAL' OR
VicePresidentTable.ExtraAccount = '&IBIMR_user.EVAL' OR
(SELECT MAX(Administrator) FROM [RVHS_Mapping].dbo.MAN_FIN_User WHERE Account = '&IBIMR_user.EVAL')=1
TABLE ON TABLE HOLD AS SQLPRD
END
-*
TABLE FILE SQLPRD
PRINT Period
BY Period
ON TABLE PCHOLD FORMAT XML
END
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
If it works when you run it on its own and when it's called by the html page, when does it NOT run?
1) it runs on its own (I can see the XML file with the result I am expecting) 2) when I open the composer I got the errors I posted. This leads to crash in some cases 3) when I run the html page from inside the composer, or normally. it works.
the point is that the errors keeping showing up in the composer, and is frustrating each time I make some change, or go in the parameters panel.
I did change the code as you suggested, Francis; but now it also does not work on its own, here the result (maybe, I did something wrong... I am getting so many headaches to figure this out )
Thanks again for your support
--------------------------------------------------------------------------------
Your request did not return any output to display.
Possible causes:
- No data rows matched the specified selection criteria.
- Output was directed to a destination such as a file or printer.
- An error occurred during the parsing or running of the request.
--------------------------------------------------------------------------------
ENGINE SQLMSS SET DEFAULT_CONNECTION RVHSSQLENT_Reporting
SQL SQLMSS
-*PREPARE SQLOUT FOR
SELECT DISTINCT Period
FROM [RVHS_FIN_DIM_FACTS].[dbo].[FACT_ExpenseCostCentres_GL]
JOIN [RVHS_FIN_DIM_FACTS].dbo.DIM_InternalGLAccount ON [fkInternal_GLAccount] = [skInternal_GLAccount]
JOIN [RVHS_FIN_DIM_FACTS].dbo.DIM_CostCentre ON fkCostCentre=DIM_CostCentre.skCostCentre
JOIN [RVHS_FIN_DIM_FACTS].dbo.DIM_ResponsibilityReporting ON fkResponsibilityReporting=skResponsibilityReporting
LEFT JOIN [RVHS_Mapping].dbo.MAN_FIN_User ManagerTable ON Meditech_Lv2_Responsibility = ManagerTable.Name
LEFT JOIN [RVHS_Mapping].dbo.MAN_FIN_User DirectorTable ON Meditech_Lv3_Responsibility = DirectorTable.Name
LEFT JOIN [RVHS_Mapping].dbo.MAN_FIN_User VicePresidentTable ON Meditech_Lv4_Responsibility = VicePresidentTable.Name
WHERE ManagerTable.Account = 'dbarone'
OR ManagerTable.ExtraAccount = 'dbarone'
OR DirectorTable.Account = 'dbarone'
OR DirectorTable.ExtraAccount = 'dbarone'
OR VicePresidentTable.Account = 'dbarone'
OR VicePresidentTable.ExtraAccount = 'dbarone'
OR (SELECT MAX(Administrator) FROM [RVHS_Mapping].dbo.MAN_FIN_User WHERE Account = 'dbarone')=1
-*END
-*TABLE FILE SQLOUT
-*PRINT *
-*ON TABLE HOLD AS SQLPRD
-*END
-*TABLE FILE SQLPRD
-*PRINT Period
-*BY Period
-*ON TABLE PCHOLD FORMAT XML
-*END
TABLE ON TABLE HOLD AS SQLPRD
END
-*
TABLE FILE SQLPRD
PRINT Period
BY Period
ON TABLE PCHOLD FORMAT XML
END
(FOC1400) SQLCODE IS 156 (HEX: 0000009C) XOPEN: 42000
: Microsoft SQL Server Native Client 10.0: [42000] Incorrect syntax near t
: he keyword 'TABLE'. [42000] Statement(s) could not be prepared. [] Defer
: red prepare could not be completed.
L (FOC1405) SQL PREPARE ERROR.
0 ERROR AT OR NEAR LINE 33 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: SQLPRD
BYPASSING TO END OF COMMAND
Sorry - you need a semi-colon on a line just before TABLE ON TABLE:
OR VicePresidentTable.Account = 'dbarone'
OR VicePresidentTable.ExtraAccount = 'dbarone'
OR (SELECT MAX(Administrator) FROM [RVHS_Mapping].dbo.MAN_FIN_User WHERE Account = 'dbarone')=1
;
TABLE ON TABLE HOLD AS SQLPRD
END
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