on 06-16-2008 11:36 AM
My input structure is <Record> 1- unbounded
<header> 1-1
<Data1> 1-unbounded
<data2> 1-unbounded
<footer> 1-1
i want to create the IDOC for data1 and data2 and using the header field while creating the IDOC.So i'm using useOneAsMany for achieving this and its working fine.
But when i duplicate the <record> node I get the following error:
"Too many values in first queue in function useOneAsMany. It must have the same number of contexts as second queue."
Is it possible to use useOneAsMany when the file contains more than 1 record?or is it possible for only one record. Please help me in this
Thanks in advance
Sreedivia
Hi,
Same problem i faced, are you using E1EDP01 node?
If yes it happens only once, don't duplicate that node.
One as Many : we have one value in the source side, but we can use that many times in the target sede in this
conditions we can use this node function.
Here it takes 3 inputs, first value represents the value to populate in the target side
second value represents howmany times the first value occur in the target side and the
third value represents where the context should change.
watch this blog for one as many node function. /people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The function useOneAsMany() is used when a field that only occurs once needs to be replicated as often as another field occurs in the outbound message
in order to avoid the error make the occurence of data1 as 1-1.
/people/william.li/blog/2006/03/21/minimize-memory-usage-during-message-mapping-when-replicating-an-element
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
set your context for the repeating group up one level.... then first parm is the field you want repeated and then the other 2 parms are the repeating group segment at the context (up one level to get all of em)... and then the output of the useoneasmany to be fed into a contextsplit
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 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.