ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » "syntax Error" in message flow

Post new topic  Reply to topic
 "syntax Error" in message flow « View previous topic :: View next topic » 
Author Message
rohit
PostPosted: Tue Feb 14, 2006 12:00 am    Post subject: "syntax Error" in message flow Reply with quote

Apprentice

Joined: 05 Jul 2005
Posts: 40

Hi ,
Thanks for your response.
Please find the code below

DECLARE Path Char;
DECLARE LastParent Char;

-- Start at first child of exception list
SET Path = 'InputExceptionList.RecoverableException[1]';

Set OutputRoot.XML.Error.ExceptionList.ErrorDate = CURRENT_DATE;
Set OutputRoot.XML.Error.ExceptionList.ErrorTime = CURRENT_TIME;
Set OutputRoot.XML.Error.ExceptionList.ErrorApplication = 'TRADE';
Set OutputRoot.XML.Error.ExceptionList.ErrorType = EVAL( Path || '.Type' );

-- Loop until no more children
WHILE EVAL( 'FIELDNAME(' || Path || ') IS NOT NULL' ) DO
-- Check if error number is available
IF EVAL( 'FIELDNAME(' || Path || '.Number) IS NOT NULL' ) THEN

-- Remember only the deepest error number and its details
Set OutputRoot.XML.Error.ExceptionList.ErrorFunction = EVAL( Path || '.Function' );
Set OutputRoot.XML.Error.ExceptionList.ErrorText.*[] = EVAL( Path || '.Insert.*[]' );
Set OutputRoot.XML.Error.ExceptionList.ErrorCatalog = EVAL( Path || '.Catalog' );
Set OutputRoot.XML.Error.ExceptionList.ErrorSeverity = EVAL( Path || '.Severity' );
-- If Message is Information
if (EVAL( Path || '.Severity' ) = 1) then
Set OutputRoot.XML.Error.ExceptionList.ErrorCode = 'BIP' || CAST(EVAL( Path || '.Number' ) AS CHAR) || 'I'; else
-- If Message is Warning
if (EVAL( Path || '.Severity' ) = 2) then
Set OutputRoot.XML.Error.ExceptionList.ErrorCode = 'BIP' || CAST(EVAL( Path || '.Number' ) AS CHAR) || 'W'; else
-- If Message is Error or Severe Error
Set OutputRoot.XML.Error.ExceptionList.ErrorCode = 'BIP' || CAST(EVAL( Path || '.Number' ) AS CHAR) || 'E';
end if;
end if;
Set OutputRoot.XML.Error.ExceptionList.ErrorDescription = EVAL( Path || '.Text' );
END IF;

-- Go to the parent of the Last Recoverable Excpetion Node.
if (EVAL('FIELDNAME(' || Path || '.RecoverableException[LAST]' || ') IS NOT NULL' )) then
Set LastParent = Path; end if;

-- Step to last child of current element (usually a nested exception list
SET Path = Path || '.RecoverableException[LAST]';

END WHILE;

Set OutputRoot.XML.Error.ExceptionList.ErrorNodeName = EVAL(LastParent || '.Label');

SET OutputRoot.XML.Error.InputData.*[] = InputBody.*[];
RETURN true;
END;

END MODULE;


The "Syntax Error " is coming in the Highlighted lines.

I have done the migration of the code using "mqsimigratemsgflows" before two days.When i import the migrated messageflows into the Message broker toolkit, i am getting this error. I get doubt like how a working code in the production can get errors.Is it changed after migration if yes what r all the modification we should do to fix it.

I am not able to post the screenshots of message flow node diagram since i don't have any sites.
Thanks & Regards
Rohit
Back to top
View user's profile Send private message
dilse
PostPosted: Tue Feb 14, 2006 8:22 am    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

rohit,

I just copied your code into my compte node as is but I didn't get any error as you were getting. I am working on WBIMB 5.0.4 FYI. So I am just wondering if there were any errors when you were migrating this code? I also want to know what is the additional information toolkit is giving when you move your cursor on the error(red dot on the left side of your code in case of error) apart from the sysntax error. let us know. It will help us in guessing the possible reason.
Back to top
View user's profile Send private message
dilse
PostPosted: Tue Feb 14, 2006 9:25 am    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

This looks like a duplicate post. Can some one from moderators delete this post as it is running on an another thread.

rohit,
Please do not post duplicates in this forum.

Thanks.
DilSe..
Back to top
View user's profile Send private message
rohit
PostPosted: Tue Feb 14, 2006 8:02 pm    Post subject: Reply with quote

Apprentice

Joined: 05 Jul 2005
Posts: 40

Hi ,

As you said it gives "Syntax Error" along with red color cross mark symbol in the toolkit and also in the problem description window it gives syntax error.

Quote:
what is the additional information toolkit is giving


It is telling only syntax error no additional information or please let me know where can i get additional information about Errors generated in toolkit.

Please find the log generated during migration of message flows.

================================================================================
Migrating export file e:\klmf\1\H2W_TradeMY_Processing.Main.xml.

--------------------------------------------------
Migrating message flow H2W_TradeMY_Processing.Main.
Warning: BIP0859W The message flow name H2W_TradeMY_Processing.Main is invalid.

The migrate command cannot use the flow name as the file name.
The flow name has been changed to H2W_TradeMY_Processing_Main.
You may later rename the flow from the WebSphere Studio.


--------------------------------------------------
Migrating message flow H2W_TradeMY_DealRecord.SF.
Warning: BIP0859W The message flow name H2W_TradeMY_DealRecord.SF is invalid.

The migrate command cannot use the flow name as the file name.
The flow name has been changed to H2W_TradeMY_DealRecord_SF.
You may later rename the flow from the WebSphere Studio.


--------------------------------------------------
Migrating message flow Trade_Generate_TagNames.SF.
Warning: BIP0859W The message flow name Trade_Generate_TagNames.SF is invalid.

The migrate command cannot use the flow name as the file name.
The flow name has been changed to Trade_Generate_TagNames_SF.
You may later rename the flow from the WebSphere Studio.


--------------------------------------------------
Migrating message flow H2W_TradeMY_HolidayTable.SF.
Warning: BIP0859W The message flow name H2W_TradeMY_HolidayTable.SF is invalid.

The migrate command cannot use the flow name as the file name.
The flow name has been changed to H2W_TradeMY_HolidayTable_SF.
You may later rename the flow from the WebSphere Studio.


--------------------------------------------------
Migrating message flow TradeMY_Generate_PCF_Format.SF.
Warning: BIP0859W The message flow name TradeMY_Generate_PCF_Format.SF is invalid.

The migrate command cannot use the flow name as the file name.
The flow name has been changed to TradeMY_Generate_PCF_Format_SF.
You may later rename the flow from the WebSphere Studio.



================================================================================
Migration completed with no errors.


Quote:
This looks like a duplicate post.


I am sorry instead of clicking post reply button i would have mistakenly clicked the newpost button.


Regards
Rohit
Back to top
View user's profile Send private message
rohit
PostPosted: Wed Feb 15, 2006 2:03 am    Post subject: Reply with quote

Apprentice

Joined: 05 Jul 2005
Posts: 40

Hi,

Thank you very much for your quick response and help.
I have re-installed the software now it works.

Thanks & Regards
Rohit
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » "syntax Error" in message flow
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.