ODBCOutput-System Stack Overflow

Post Reply
telula
Posts: 99
Joined: Tue Nov 18, 2008 5:40 am

ODBCOutput-System Stack Overflow

Post by telula »

Hello,
I have a TI process that uses ODBCOutput with a 'Delete' and 'Insert' sql statements.
It worked in one T1 process but gave a System Stack Overflow message when I tried to export other data into another table in the sql server. I am using v9.0SP3. Does anyone know what will trigger this system stack overflow message?
Gregor Koch
MVP
Posts: 263
Joined: Fri Jun 27, 2008 12:15 am
OLAP Product: Cognos TM1, CX
Version: 9.0 and up
Excel Version: 2007 and up

Re: ODBCOutput-System Stack Overflow

Post by Gregor Koch »

Hi

I think you might be having the same issue we already reported to IBM as a bug.
What we found is that in that version the EXPAND function commonly used in the ODBCOutPut to prevent the stack overflow when creating a query which is more than 256 Charachters long is not doing what it is supposed to do.

In short: your query text in the ODBCOtuPut might be longer than 256 Characters.

Cheers
telula
Posts: 99
Joined: Tue Nov 18, 2008 5:40 am

Re: ODBCOutput-System Stack Overflow

Post by telula »

I tested it with a shorter sql just to test if there was something else.
So I am just exporting a project name and for a particular project, the name is Acme's 15th Anniversary.
The ' is causing the TI process to fail. My sql is below. How do I tackle the ' in the project name?


s_SQL = 'INSERT INTO ProjectInfo_Version2 ([ProjCode], [Name]) '
| 'Values ('
| Char( 39) | Projectcode | Char( 39) | ', '
| Char( 39) | ProjectName | Char( 39) | ')';
Post Reply