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 » problem in messageflow with database operation

Post new topic  Reply to topic
 problem in messageflow with database operation « View previous topic :: View next topic » 
Author Message
rohit
PostPosted: Tue Jul 05, 2005 6:22 am    Post subject: problem in messageflow with database operation Reply with quote

Apprentice

Joined: 05 Jul 2005
Posts: 40

Hi,
I was trying to create a messageflow by which i can retrieve the details from the database.
I have created a database called dbase1 and table called table1 with two fields item and cost.
then i configured DSN using administrative tool->odbc(32 bit) with (dbase name)same name.
and in compute node i coded the following.

SET OutputRoot=InputRoot;
SET OutputRoot.XML.Product.cost[] =
(SELECT T.Item,T.Cost FROM TABLE1 AS T);


the input message i am planning is

<product>
<item>orange</item>
</product>

the output message i prefer is

<product>
<item>orange</item>
<cost>500</item>
</product>

when i try to deploy the following error message is comming,Can anyone tell me what is the mistake i am doing .
Is my dsn creation is correct or am i missing anything.




BIP2432E: (, 5.28) : The correlation name 'TABLE1' is not valid. Those in scope are: Environment, InputLocalEnvironment, OutputLocalEnvironment, InputRoot, InputBody, InputProperties, OutputRoot, InputExceptionList, OutputExceptionList, Database, InputDestinationList, OutputDestinationList.

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.



Regards
Rohit
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 05, 2005 6:25 am    Post subject: Re: problem in messageflow with database operation Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

rohit wrote:
Code:
SET OutputRoot.XML.Product.cost[] =
(SELECT T.Item,T.Cost FROM TABLE1 AS T);


Code:
Set OutputRoot.XML.Product.cost[] = (Select T.Item, T.Cost from Database.TABLE1 as T);


Please refer to the below documentation if you do not understand the code I have posted.

http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.etools.mft.doc/ak05760_.htm


_________________
I am *not* the model of the modern major general.
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 » problem in messageflow with database operation
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.