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 » Broker 7: DataInsert Node

Post new topic  Reply to topic
 Broker 7: DataInsert Node « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Mon May 17, 2010 6:11 am    Post subject: Broker 7: DataInsert Node Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

HI all,

MB7:
I am trying to DataInsert a row into Oracle table with 2 columns:
ID: Integer
NAME: VARCHAR(100)

The ID goes in well but the NAME gets NULLS.

The DataInsert as a XML Message Set/Definition as a Source, and oracle database table definition as a Target.

The ID mapping is:
xs:integer($source/FoodStampSubmissionRequest/Account/ID)

The NAME mapping is:
$source/FoodStampSubmissionRequest/Account/NAME

Any ideas why NAME gets NULLS (like these ¿¿¿¿¿ )


Here is the DataInsert MSGMAP file:

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gplang="http://www.ibm.com/wbi/2005/gplang" xmlns:maplang="http://www.ibm.com/wbi/2005/maplang" xmlns:msg="http://www.ibm.com/wbi/2005/msg" xmlns:rdb="http://www.ibm.com/wbi/2005/rdb">
<maplang:MapOperation name="MF_TEST_DB_ISRT_DataInsert" version="7.0.0.v20091028_2100" prefixes="/0/@namespaces.0/@prefix /0/@namespaces.1/@prefix /0/@namespaces.2/@prefix">
<blockContents xsi:type="maplang:ForEachStatement">
<blockContents xsi:type="rdb:InsertStatement" targetMapName="$db:insert" dsnName="DDEV" schemaName="MELSERVER" tableName="PAVANTEST">
<blockContents xsi:type="rdb:ColumnStatement" mappableName="ID">
<blockContents xsi:type="maplang:MapFromStatement">
<value xsi:type="gplang:FunctionCallExpression" name="xs:integer" text="xs:integer($source/FoodStampSubmissionRequest/Account/ID)"/>
</blockContents>
</blockContents>
<blockContents xsi:type="rdb:ColumnStatement" mappableName="NAME">
<blockContents xsi:type="maplang:MapFromStatement">
<value xsi:type="maplang:MappableReferenceExpression" name="$source" text="$source/FoodStampSubmissionRequest/Account/NAME"/>
</blockContents>
</blockContents>
</blockContents>
<source xsi:type="maplang:MappableReferenceExpression" name="$source" text="$source/FoodStampSubmissionRequest/Account"/>
</blockContents>
<eParameters xsi:type="msg:MsgSourceMapRoot" name="$source" eType="/1"/>
<namespaces namespaceName="http://www.w3.org/2001/XMLSchema">
<prefix prefixName="xsd"/>
</namespaces>
<namespaces namespaceName="http://www.w3.org/2001/XMLSchema-instance">
<prefix prefixName="xsi"/>
</namespaces>
<namespaces namespaceName="http://niem.gov/niem/appinfo/2.0">
<prefix prefixName="dfta"/>
</namespaces>
</maplang:MapOperation>
<msg:MessageHandle messageSetName="MS_TEST_DB_ISR" namespaceName="" simpleName="FoodStampSubmissionRequest" messageKind="assembly">
<headers name="Properties" rootElementName="Properties"/>
</msg:MessageHandle>
</xmi:XMI>


Thanks,
Moshe
Back to top
View user's profile Send private message Send e-mail MSN Messenger
fatherjack
PostPosted: Wed May 19, 2010 12:27 am    Post subject: Re: Broker 7: DataInsert Node Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

When I do something similar I don't see this line in my msgmap.

scravr wrote:
<source xsi:type="maplang:MappableReferenceExpression" name="$source" text="$source/FoodStampSubmissionRequest/Account"/>


Dunno if this has anything to do with it or if its just a difference between my V6.1 and your version 7.
_________________
Never let the facts get in the way of a good theory.
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 » Broker 7: DataInsert Node
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.