TD 13 - Invalid Cursor State - Stored Procedure

Database
Highlighted

TD 13 - Invalid Cursor State - Stored Procedure

I am getting the following error when trying to execute a stored procedure via the ODBC driver:

[Teradata][ODBC Teradata Driver] Invalid cursor state.

24000

My Stored Proc is just a simple UPSERT like the following:

UPDATE tname
SET cname = expr [... , cname = expr]
[ WHERE cond ]
ELSE
INSERT INTO tname [ (colname [... , colname] ) ]
VALUES (expr [... , expr])

I am sending a couple hundred requests at a time to the Stored Proc.

1 REPLY

Re: TD 13 - Invalid Cursor State - Stored Procedure

I forgot to add, the records do get inserted/updated but the error is added to the event viewer with each new record processed.