on 10-29-2006 7:36 AM
Hi All,
My source is Idoc Debmas06 and my target is Siebel XSD.source data come from 2 segments are 1) E1KNA1M in the fields are SORLT and NAME
2) E1KNVPM in the fields is KNREF and PARVW
Target side structure are like this
NpbackOfficeAccountRelationship(header level 0.1)
NpbackOfficeAccountRelationship(itemlevel 0.unbounded)
Fields are AccountId
RelateadedAccount ID
Name
Relationshiptyp
BORrowid
I did mapping like this:
1) SORTL-------
E1KNA1M---- > UseoneAsMany----
>NpbackOfficeAccountRelationship
E1KNVPM-
Set context also but I got error
<b>I got error like</b> :
Runtime exception during processing target field mapping /SiebelMessage/ListOfNpAccountNp/NpAccount/ListOfBackOfficeAccountRelationship/BackOfficeAccountRelationship. The message is: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Too few values in second queue in function useOneAsMany. It must have over all contexts the same number of values as third queue] in class com.sap.aii.mappingtool.flib3.NodeFunctions method useOneAsMany[, , ]
com.sap.aii.mappingtool.tf3.MessageMappingException: Runtime exception during processing target field mapping /SiebelMessage/ListOfNpAccountNp/NpAccount/ListOfBackOfficeAccountRelationship/BackOfficeAccountRelationship. The message is: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Too few values in second queue in function useOneAsMany. It must have over all contexts the same number of values as third queue] in class com.sap.aii.mappingtool.flib3.NodeFunctions method useOneAsMany[, , ]
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:275)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:238)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:238)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:238)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:238)
at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:338)
at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:60)
at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105)
at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431)
at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Root Cause:
com.sap.aii.utilxi.misc.api.BaseRuntimeException: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Too few values in second queue in function useOneAsMany. It must have over all contexts the same number of values as third queue] in class com.sap.aii.mappingtool.flib3.NodeFunctions method useOneAsMany[, , ]
at com.sap.aii.mappingtool.tf3.rt.Q2QFunctionWrapper.cacheQueue(Q2QFunctionWrapper.java:105)
at com.sap.aii.mappingtool.tf3.rt.Q2QFunctionWrapper.gotoNextContext(Q2QFunctionWrapper.java:43)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:178)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:238)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:238)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:238)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:238)
at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:338)
at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:60)
at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105)
at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431)
at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /SiebelMessage/ListOfNpAccountNp/NpAccount/ListOfBackOfficeAccountRelationship/BackOfficeAccountRelationship. The message is: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Too few values in second queue in function useOneAsMany. It must have over all contexts the same number of values as third queue] in class com.sap.aii.mappingtool.flib3.NodeFunctions method useOneAsMany[, , ]
06:55:02 End of test
<b>I want like this format of target side :
- <ListOfBackOfficeAccountRelationship>
- <BackOfficeAccountRelationship>
<AccountId>1-11VIP</AccountId>
<Name2>XYZ PP Ltd</Name2>
<RelatedAccountId>1-11VIP</RelatedAccountId>
<RelationType>Bill To</RelationType>
<BORowId>1-1U3JA</BORowId>
</BackOfficeAccountRelationship>
- <BackOfficeAccountRelationship>
<AccountId>1-11VIP</AccountId>
<Name2>XYZ PP Ltd</Name2>
<RelatedAccountId>1-11VIP</RelatedAccountId>
<RelationType>Sold To</RelationType>
<BORowId>1-11VJ6</BORowId>
</BackOfficeAccountRelationship>
</ListOfBackOfficeAccountRelationship></b>
Hi,
The error shows Runtime exception , Once agin check your XSD . whether you have defined proparly.
Regards
Agasthuri Doss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1) Check out the incoming value from the sender side ..
2) try to give account id and related account as string ..like relation type.
3) if java code is used for mapping...re-import again and activate ,,the object...
4) do you do any java validation..if so check the code..is it similar to the relation type..data type including the way how it is defined..
Regards
Agasthuri Doss
Ramesh,
The error clearly states that you are not passing equal number of contexts / values for UseoneAsMany function. You should have equal number of values in the queue. Check this weblog where you will find some help:
/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
---Satish
User | Count |
---|---|
85 | |
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.