cancel
Showing results for 
Search instead for 
Did you mean: 

BaseRuntime Exception during Message Mapping

Jitendra_Jeswan
Contributor
0 Kudos

Hi I am performing the scenario File --> XI --> File

I want to do the File content Conversion (FCC) only at the Receiver side.

My source file(Message Type) is XML which looks like as below:

<?xml version="1.0" encoding="UTF-8" ?>

- <ns0:MT1_FCC xmlns:ns0="http://accenture.com/xi/F2F">

- <Name_>

- <Name>

<FName>abc</FName>

<MName>bcd</MName>

<LName>cde</LName>

</Name>

</Name_>

</ns0:MT1_FCC>

My target file would be the text file which will look like as follows:

abc#bcd#cde

However at runtime the Error is thrown with BaseRuntimeException in Message Mapping which simple one to one mapping from source message to target message . the source and the target message are same.

The Error message is as follows:

<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_FCC_</Trace>

<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException

Kindly Look into the Issue..

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

FCC for receiver side....

Recordset Structure----Name,*

Name.fieldsNames---FName,MName,LName

Name.fieldSeperator---#

Name.processfieldNames---fromConfiguration

Cheers!

Samarjit

Jitendra_Jeswan
Contributor
0 Kudos

hi samarjit -

I did try it , Its not working....

The Error I am getting is...

Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'Name.fieldFixedLengths' or 'Name.fieldSeparator' is missing

Former Member
0 Kudos

Hi,

i saw your source structure...why it need tab <Name_>?If its possible to remove that tag and try it.

Which i give u abt FCC that is working in my system....

I hv some mistake...please try it with this

Recordset Structure----Name,*

<b>Name.fieldNames---FName,MName,LName

Name.fieldSeparator---#

Name.processFieldNames---fromConfiguration</b>

Cheers!

Samarjit

Message was edited by:

Samarjit Dey

Jitendra_Jeswan
Contributor
0 Kudos

Hi i think you are getting confused by the Sorce Structure...

Ok lemme retype it for You and please then tell me the necessary parameters needed to convert the source xml file into the target text file

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT1_FCC xmlns:ns0="http://accenture.com/xi/F2F">

<FullName>

<Name>

<FName>abc</FName>

<MName>bcd</MName>

<LName>cde</LName>

</Name>

</FullName>

</ns0:MT1_FCC>

Former Member
0 Kudos

Hi,

I hv some mistake...please try it with this

<b>Recordset Structure----Name,*

Name.fieldNames---FName,MName,LName

Name.fieldSeparator---#

Name.processFieldNames---fromConfiguration</b>

Cheers!

Samarjit