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 inserting record with DataInsert node in WBIMB 5.0

Post new topic  Reply to topic
 Problem inserting record with DataInsert node in WBIMB 5.0 « View previous topic :: View next topic » 
Author Message
cadenza
PostPosted: Sun Jun 20, 2004 11:53 pm    Post subject: Problem inserting record with DataInsert node in WBIMB 5.0 Reply with quote

Apprentice

Joined: 01 Jun 2004
Posts: 48

Hi All,

I am facing a typical problem.

Suppose my input xml is :

<Book>
<Title>The Adventures of Tom Sawyer</Title>
<Author>Mark Twain</Author>
<Publisher>Penguin</Publisher>
</Book>

I have a table Book in DB2 having fields Title, Author and Publisher.

My Message Flow input is XML, which I take it in MQInput. I connect MQInput to DataInsert Node and map the input message to the database fields, using the .mfmap file. I have not used any ESQL for the above. I am connecting the DataInsert node to the Compute node where I am doing some other processing, and the output received is fine.

After I put the message, I find that data is updated in the database, but not in the desired format.

My requirement is:

******************************************************
|Title | Author | Publisher |
******************************************************
The Adventures of Tom Sawyer| Mark Twain| Penguin
*******************************************************

But the Output is:

******************************************************
|Title | Author | Publisher |
******************************************************
| Mark Twain|
---------------------------------------------------------------------------------
The Adventures of Tom Sawyer| |
---------------------------------------------------------------------------------
| | Penguin
*******************************************************

In other words, I would like the data to be inserted as one record only. But I am getting three records.

Thanks.
Back to top
View user's profile Send private message
leongor
PostPosted: Mon Jun 21, 2004 4:22 am    Post subject: Reply with quote

Master

Joined: 13 May 2002
Posts: 264
Location: Israel

In Outline view you need to select 3 rows you mapped and right click them with "Combine To One Row".
_________________
Regards.
Leonid.

IBM Certified MQSeries Specialist.
Back to top
View user's profile Send private message
kalva7
PostPosted: Mon Jun 21, 2004 4:28 am    Post subject: Reply with quote

Novice

Joined: 18 Sep 2003
Posts: 21
Location: Pune,India

Hey,

After mapping the data, go to the outline , select all the mappings established, right click and choose combine to same row--->remove slected mappings, then only one record will be inserted wth all fields.

Cheers,
Chandra
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
cadenza
PostPosted: Mon Jun 21, 2004 4:54 am    Post subject: Problem Solved Reply with quote

Apprentice

Joined: 01 Jun 2004
Posts: 48

Hi leonid and chandra,

Thanks for the prompt response.

I tried that and it is now working fine.

Thanks.
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 inserting record with DataInsert node in WBIMB 5.0
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.