Posted: Sun Aug 17, 2014 11:00 pm Post subject: Timeout Notification node Database access issue
Novice
Joined: 03 Jul 2014 Posts: 13
Hi There
I have a Message Flow starting with the Timeout Notification node. Timeout node is configured to execute after every 10 seconds interval. First cycle of the flow execute without an error. but the second flow generate an error on Database select query. I'm accessing oracle database with ODBC connection.
This is the code generating an error....
DECLARE MyTimeStamp TIMESTAMP;
SET MyTimeStamp = TIMESTAMP '2014-08-13 10:10:10';
SET Environment.Variables.Alerts = NULL;
SET Environment.Variables.Alerts[] =
(SELECT SMS.DEBITBRANCHCODE, SMS.DEBITACCOUNTNO, SMS.TRDATE, SMS.AMOUNT, SMS.UNIQUEID
FROM Database.MB9_TRANSACTION_SMS_VIEW AS SMS WHERE SMS.TRDATE > MyTimeStamp);
Ok, so it looks like you are using a cached SQL statement. But the parameters you are passing to the SQL statement are not type-safe. Looks like one of the parameters, MyTimeStamp is not always being passed with the same type.
Hope this helps _________________ MQ & Broker admin
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum