on 01-24-2007 4:27 AM
<b>Mapping:</b>
RootNode (outgoing)
Headernode
Rootnodeofreord(1..1)
Recordnode(1..n)
*Itemnode(1..n)
-projectId
RootNode(incoming)
Headernode
*Recordnode(1..n)
Itemnode(1..n)
-projectDescp
<b>Mapping of projectdescp.</b>
if ItemNode count Greater then 4
Then Constant(see details) ==projectDescp
Else
ProjectId ==projectDescp
By this mapping it gave error:of value lost and projectDescp creation error.
So I added remove context after check Greater then 4.
Now there is no error but I am not getting req result.
<b>Input:</b>
RootNode
Headernode
Rootnodeofreord(1..1)
Recordnode(1..n) (count of item only three)
Itemnode(1..n) projectId (value 1)
Itemnode(1..n) projectId (value 2)
Itemnode(1..n) projectId (value 3)
Recordnode(1..n) (count of Itemnode more than4)
Itemnode(1..n) projectId
Itemnode(1..n) projectId
Itemnode(1..n) projectId
Itemnode(1..n) projectId
Itemnode(1..n) projectId
<b>Result:</b>
RootNode Headernode
Recordnode(1..n) (count of item only three)
Value at this level is wrong the projjdescp at 2 n 3 is wrong
It should have been 2 and 3 not (see details) as count of itemnode is only 3.why does 2 and 3 replaced by (seedetails).
Itemnode(1..n) projectDescp (value 1)
Itemnode(1..n) projectDescp (value see details )
Itemnode(1..n) projectDescp (value see details )
Recordnode(1..n) (count of Itemnode more than4)
Valus at this level is right as count of node is more than 4
Itemnode(1..n) projectDescp (value see details )
Itemnode(1..n) projectDescp (value see details )
Itemnode(1..n) projectDescp (value see details )
Itemnode(1..n)
projectDescp (value see details )
Itemnode(1..n) projectDescp (value see details )
Hi,
What is the occurence of projectDescp?
Are all these fields under the node Headernode; or is there another level of hierarchy here?
Posting the correct hierarchy for the MT could make the query more clearer.
Instead of removecontexts, can you try assigning the context of ProjectId and Itemnode to Rootnodeofreord?
Looking at the queues in the message mapping editor, would give you more hints on where the problem is.
Regards,
Smitha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In your mapping editor, double click on the source node you want to map.
projectId in this case.
Once, the node appears in the box below, right click on it.
Select context->Rootnodeofreord.
One more way of debugging this is to check the queues.
When you right click on the node and select queue, you would be displayed the entered values, which would help you debug. (The values are taken from the values that you would have specified in the Test tab of the mapping editor.)
Regards,
Smitha.
Used useOneAsMany and SplitbyValue inplace of removecontext.
It solved my problem.
useOneAsMany helped to divide the solution
into group based on context change.
SplitbyValue helped to put context for each value in the result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.