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.
(FOC1400) SQLCODE IS -1 (HEX: FFFFFFFF) : Microsoft OLE DB Provider for SQL Server: [] Cannot create new connectio : n because in manual or distributed transaction mode. L (FOC1406) SQL OPEN CURSOR ERROR. :
I have tried renaming the tags in the joins in case that was an issue but that didn't work. I'm not really sure where to start on this one. Can someone give some insight?
Thanks.
WebFOCUS 7.7.03 Windows Web Server 2008 MS SQL Server 2000 Excel,CSV,PDF,HTML
Posts: 71 | Location: Kingston, ON | Registered: May 03, 2011
@MattC - I am only using one database to get my information. It is only when I join the one table it seems and I don't have to use that table. Prior to this bit of code, I have this table in a separate JOIN statement. However, I am using JOIN CLEAR * at the beginning of every new JOIN statement. This has never been a problem before, not sure why it is starting all of a sudden.
@Waz - I'm not using DataMigrator or the DBLOOKUP command. Unless, WF uses DBLOOKUP without me knowing, this is very possible.
Like I said above, if I remove the JOIN statement it works without a problem.
Any other suggestions?
Thanks.
WebFOCUS 7.7.03 Windows Web Server 2008 MS SQL Server 2000 Excel,CSV,PDF,HTML
Posts: 71 | Location: Kingston, ON | Registered: May 03, 2011
Originally posted by Waz: Even if it does not seem related, did you try ENGINE SQLMSS SET FASTLOAD OFF
Yes, I did try it and it doesn't make a difference. I have concluded that it has to do with my JOIN statements.
The error messages give me the error with the second JOIN statement and table QC_RESULTS. This only occurs when I try to print something from QC_RESULTS. If I don't print anything, the report runs.
JOIN CLEAR *
JOIN
INNER LJ1HOLD.LJ1HOLD.FINAL_RUN_ID IN LJ1HOLD TO UNIQUE
GETRUNANALYSES.INPUT.@RUNID IN GETRUNANALYSES TAG J12 AS J12
END
JOIN
INNER LJ1HOLD.LJ1HOLD.FINAL_RUN_ID IN LJ1HOLD TO UNIQUE
QC_RESULTS.QC_RESULTS.RUN_ID IN QC_RESULTS TAG J4 AS J4
END
JOIN
INNER J4.QC_RESULTS.ANALYTESCHEME_ID IN LJ1HOLD TO UNIQUE
TBL_ANALYTESCHEMES.TBL_ANALYTESCHEMES.ANALYTESCHEME_ID IN TBL_ANALYTESCHEMES
TAG J7 AS J7
END
JOIN
INNER J7.TBL_ANALYTESCHEMES.ANALYTE_ID IN LJ1HOLD TO UNIQUE
TBL_ANALYTES.TBL_ANALYTES.ANALYTE_ID IN TBL_ANALYTES TAG J13 AS J13
END
If I take the same tables and JOIN the third table differently, the errors then occur on the TBL_ANALYTESCHEMES table instead of QC_RESULTS table. Again, it only gives the errors when I try to print something from the TBL_ANALYTESCHEMES table.
JOIN CLEAR *
JOIN
INNER LJ1HOLD.LJ1HOLD.FINAL_RUN_ID IN LJ1HOLD TO UNIQUE
GETRUNANALYSES.INPUT.@RUNID IN GETRUNANALYSES TAG J12 AS J12
END
JOIN
INNER LJ1HOLD.LJ1HOLD.FINAL_RUN_ID IN LJ1HOLD TO UNIQUE
QC_RESULTS.QC_RESULTS.RUN_ID IN QC_RESULTS TAG J4 AS J4
END
JOIN
INNER LJ1HOLD.LJ1HOLD.ANALYTESCHEME_ID IN LJ1HOLD TO UNIQUE
TBL_ANALYTESCHEMES.TBL_ANALYTESCHEMES.ANALYTESCHEME_ID IN TBL_ANALYTESCHEMES
TAG J7 AS J7
END
JOIN
INNER J7.TBL_ANALYTESCHEMES.ANALYTE_ID IN LJ1HOLD TO UNIQUE
TBL_ANALYTES.TBL_ANALYTES.ANALYTE_ID IN TBL_ANALYTES TAG J13 AS J13
END
I'm really confused about why this is happening. Any other suggestions?
Thanks.
WebFOCUS 7.7.03 Windows Web Server 2008 MS SQL Server 2000 Excel,CSV,PDF,HTML
Posts: 71 | Location: Kingston, ON | Registered: May 03, 2011
It may also help to take a look at the sql being generated. And you could comtenplate to let focus do the join iso sql server. There are settings for that, although I can't remember exactly what they are.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Originally posted by GamP: It may also help to take a look at the sql being generated. And you could comtenplate to let focus do the join iso sql server. There are settings for that, although I can't remember exactly what they are.
This is the code I have for showing the SQL Trace, however, I can't seem to find the SQL even if I use "View Source".
-SET &ECHO=ALL;
SET TRACEOFF = ALL
SET TRACEON = STMTRACE/CLIENT
SET TRACEON = STMTRACE/CLIENT
SET TRACEON = STMTRACE/CLIENT
SET TRACESTAMP = OFF
SET TRACEWRAP = 78
SET TRACEUSER = ON
SET XRETRIEVAL=OFF
Is there anything wrong with the code above?
Thanks.
WebFOCUS 7.7.03 Windows Web Server 2008 MS SQL Server 2000 Excel,CSV,PDF,HTML
Posts: 71 | Location: Kingston, ON | Registered: May 03, 2011