|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ESQL Errors after 2.1 > v5 conversion |
« View previous topic :: View next topic » |
Author |
Message
|
thebeach |
Posted: Tue Aug 09, 2005 12:51 am Post subject: ESQL Errors after 2.1 > v5 conversion |
|
|
Apprentice
Joined: 30 Mar 2004 Posts: 47
|
I've migrated from mqsi 2. 1to v5, and used mqsimigratemsgflows to convert the flows, but have encountered issues deploying the flow on v5.
The flows show no errors in the toolkit, but fail to deploy due to the ESQL errors below. The mqsimigratemsgflows report shows no errors.
Here's the ESQL:
CREATE COMPUTE MODULE "Example_V1_4_ST"
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
-- CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
RETURN TRUE;
END;
CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER 1;
DECLARE J INTEGER CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;
CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;
END;
END MODULE;
CREATE FILTER MODULE "Example_V1_4_CH"
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
RETURN TRUE;
END;
END MODULE;
Here's the Error on deploying the bar file:
BIP2432E: (2, 1) : The correlation name 'CREATE' is not valid. Those in scope are: Environment, LocalEnvironment, Root, Body, Properties, ExceptionList, DestinationList.
The first element of a field reference must be a valid correlation name, from those in scope. This message may sometimes be due to an incorrectly formed or spelled expression which is not intended to be a field reference being parsed as if it were a field reference because the parser does not recognize it.
Correct the syntax of the expression and redeploy the message flow.
BIP4001E: Syntax error in SQL statements in filter node 'Example_V1_4.'.
The configuration of filter node Example_V1_4. failed due to errors in the SQL statement text. See the following messages for details of the error. The statement text was ' CREATE SCHEMA "" CREATE FILTER MODULE "Example_V1_4_CheckForDBError" CREATE FUNCTION Main() RETURNS BOOLEAN BEGIN RETURN TRUE; END; END MODULE; '.
The next error message will give specific details of where the error occurred in the statement text. Check the correct syntax for filter node SQL statements in the WebSphere Business Integration Message Brokers publications. Correct the statements and redeploy the configuration.
BIP4041E: Execution group 'Example' received an invalid configuration message. See the following messages for details of the error.
The message broker received an invalid configuration message and has not updated its configuration. This can arise as a result of errors in the specification of either message flows or message sets which the configuration manager was unable to detect. It can also result from a message flow requiring a type of node that is not supported by the broker installation, from the broker having become out of step with the configuration database or from other applications sending extraneous messages to the broker's configuration queues (SYSTEM.BROKER.ADMIN.QUEUE & SYSTEM.BROKER.EXECUTIONGROUP.QUEUE).
Advice appreciated! |
|
Back to top |
|
 |
RichA |
Posted: Fri Aug 12, 2005 9:34 am Post subject: |
|
|
 Centurion
Joined: 14 Mar 2002 Posts: 102
|
There doesn't appear to be anything wrong with your code, I have experienced similar problems that were resolved simply by copying the code into a new esql file. |
|
Back to top |
|
 |
recallsunny |
Posted: Fri Aug 12, 2005 11:47 am Post subject: |
|
|
 Disciple
Joined: 15 Jun 2005 Posts: 163 Location: Massachusetts
|
Switch to Broker App Development perspective and Rebuild the project before you deploy. Usually this display any errors after Migration.
|
|
Back to top |
|
 |
thebeach |
Posted: Tue Aug 16, 2005 12:54 am Post subject: |
|
|
Apprentice
Joined: 30 Mar 2004 Posts: 47
|
I tried the rebuild and cut and paste, still no go!
Are there any changes to filter node required before performing the mqsimigratemsgflow command? I thought I read something about inserting RETURN commands in these cases?
WBI is showing an error where i've put the hash below:
V5 code:
CREATE FILTER MODULE CheckForError
CREATE FUNCTION main() RETURNS BOOLEAN BEGIN
RETURN
#Body.(XML.tag)broker.MQSIERROR.global.proc_info = 'SUCCESS' AND Body.(XML.tag)broker.MQSIERROR.local.proc_info = 'SUCCESS'
;
END;
END MODULE;
v2.1 filter node code:
Body.(XML.tag)broker.MQSIERROR.global.proc_info = 'SUCCESS' AND Body.(XML.tag)broker.MQSIERROR.local.proc_info = 'SUCCESS'
Thanks all! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|