on 05-01-2006 6:34 PM
I need help to resolve following error during message transformation.
........ BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:BankCheckRecon_Request_MT/Header. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start.............
<b>Note </b> Message Map and Interface map are working correctly when tested separately in the Repository.
<b>Mapping Rules:</b>
/ns0:BankCheckRecon_Request_MT=/ns0:ComericaCheckRecon_Request_MT=
/ns0:BankCheckRecon_Request_MT/Header=/ns0:ComericaCheckRecon_Request_MT/Header=
/ns0:BankCheckRecon_Request_MT/Header/RecordID=const()
/ns0:BankCheckRecon_Request_MT/Header/HdrNumber=const()
/ns0:BankCheckRecon_Request_MT/Header/SenderBank=const()
/ns0:BankCheckRecon_Request_MT/Header/ReceiverBank=const()
/ns0:BankCheckRecon_Request_MT/Header/AcctNumber=/ns0:ComericaCheckRecon_Request_MT/Header/AcctNumber=
/ns0:BankCheckRecon_Request_MT/Header/PymtType=const()
/ns0:BankCheckRecon_Request_MT/Header/TapeDate=const()
/ns0:BankCheckRecon_Request_MT/Header/ISOCurr=const()
/ns0:BankCheckRecon_Request_MT/Item=ifWithoutElse(stringEquals(/ns0:ComericaCheckRecon_Request_MT/Detail/RecordID=, const()), /ns0:ComericaCheckRecon_Request_MT/Detail=)
/ns0:BankCheckRecon_Request_MT/Item/RecordID=const()
/ns0:BankCheckRecon_Request_MT/Item/ValueDate=currentDate()
/ns0:BankCheckRecon_Request_MT/Item/ChkNumber=/ns0:ComericaCheckRecon_Request_MT/Detail/ChkNumber=
/ns0:BankCheckRecon_Request_MT/Item/ChkAmount=/ns0:ComericaCheckRecon_Request_MT/Detail/ChkAmount=
/ns0:BankCheckRecon_Request_MT/Item/ReceiverBank=const()
/ns0:BankCheckRecon_Request_MT/Item/AcctNumber=const()
/ns0:BankCheckRecon_Request_MT/Item/EncashDate=TransformDate(/ns0:ComericaCheckRecon_Request_MT/Detail/ChkPaidDate=)
/ns0:BankCheckRecon_Request_MT/Item/TransCode=const()
/ns0:BankCheckRecon_Request_MT/Item/AcctNumber_1=/ns0:ComericaCheckRecon_Request_MT/Detail/AcctNumber=
<b>Test Data -</b>
<?xml version="1.0" encoding="UTF-8"?>
<ns0:ComericaCheckRecon_Request_MT xmlns:ns0="http://mazdausa.com/sapr3/fi/transdata/bankcheckrecon">
<Header>
<AcctNumber>2176975528</AcctNumber>
<Filler1> </Filler1>
<ReconDate>123105</ReconDate>
<Filler2> </Filler2>
<RecordID>H</RecordID>
<Filler3> </Filler3>
</Header>
<Detail>
<AcctNumber>2176975528</AcctNumber>
<Filler1> </Filler1>
<ChkNumber>0000200001</ChkNumber>
<Filler2> </Filler2>
<ChkPaidDate>121905</ChkPaidDate>
<Filler3> </Filler3>
<ChkAmount>0001020000</ChkAmount>
<RecordID>D</RecordID>
<Filler4> </Filler4>
</Detail>
<Detail>
<AcctNumber>2176975528</AcctNumber>
<Filler1> </Filler1>
<ChkNumber>0000200002</ChkNumber>
<Filler2> </Filler2>
<ChkPaidDate>121405</ChkPaidDate>
<Filler3> </Filler3>
<ChkAmount>0164840000</ChkAmount>
<RecordID>D</RecordID>
<Filler4> </Filler4>
</Detail>
<Trailer>
<AcctNumber>2176975528</AcctNumber>
<Filler1> </Filler1>
<ChksCount>0000000493</ChksCount>
<Filler2> </Filler2>
<TotalAmount>0766945400</TotalAmount>
<Filler3> </Filler3>
<RecordID>T</RecordID>
<Filler4> </Filler4>
</Trailer>
</ns0:ComericaCheckRecon_Request_MT>
Thanks
Rajesh
Hi
Has anybody found the solution for this problem?
I'm facing exactly the same situation with the multimapping.
Thanks
Raf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hemnani
The message clearly says that the error occured during message mapping. So can you give us the Message Type structure which you have specified in your mapping. Also let us know which adapters you are working with in this scenario?
--- Mohan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Mohan for your quick response. I am working with File Adapter and here are <b>Message Structures:</b>
ComericaCheckRecon_Request_MT
Header
AcctNumber 10
Filler1 1
ReconDate 6
Filler2 22
RecordID 1
Filler3 40
Detail
AcctNumber 10
Filler1 1
ChkNumber 10
Filler2 1
ChkPaidDate 6
Filler3 1
ChkAmount 10
RecordID 1
Filler4 40
Trailer
AcctNumber 10
Filler1 1
ChksCount 10
Filler2 1
TotalAmount 10
Filler3 7
RecordID 1
Filler4 40
BankCheckRecon_Request_MT
Header
RecordID 1
HdrNumber 3
SenderBank 15
ReceiverBank 15
AcctNumber 18
PymtType 3
TapeDate 8
ISOCurr 3
Item
RecordID 1
ValueDate 8
ChkNumber 13
ChkAmount 11
ReceiverBank 15
AcctNumber 10
EncashDate 8
TransCode 3
AcctNumber 18
Rajesh,
First check with giving only one Line (Detail node) in the input and check the result.
I think while mapping, for multiple line items ,it is not mapped properly.
Try to give SplitByValue for the Line items so that it will take multiple line items.
Hope this helps,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.