cancel
Showing results for 
Search instead for 
Did you mean: 

Exception during Mapping

Jitendra_Jeswan
Contributor
0 Kudos

I am performing Message Mapping and getting following error

<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

My source File is as follows:

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

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

- <Name_>

- <Name>

<FName>abc</FName>

<MName>cde</MName>

<LName>efg</LName>

</Name>

</Name_>

</ns0:MT1_FCC>

what could be the Problem...

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

could you please put your actual source payload and the payload created using Message Mapping to test mapping your mapping.

Normally there if there is any mismatch, it throws that error. Its pretty common when we use FCC as even if we make small typing mistake it gets screwed up.

Things are case sensitive.

I find a tag <Name_> in your payload. Did you create it intentionally or it is an error.

Just check that.

If you need any more help please let me know.

Regards

Pushkar

Former Member
0 Kudos

Hi,

Remove the '-' characters from the source file so that it reads:

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

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

<Name_>

<Name>

<FName>abc</FName>

<MName>cde</MName>

<LName>efg</LName>

</Name>

</Name_>

</ns0:MT1_FCC>

Kind regards,

Koen

Jitendra_Jeswan
Contributor
0 Kudos

which character?

Can you tell me specifically please !!

And please provide me why i need to remove the particular character.

I have kept "Name_" intentionally. It was'nt a mistake !!

Former Member
0 Kudos

Jeet,

You probably copied the source file fromSXMB_MONI or Internet explorer. This includes some dashes ('-') at the beginning of the line, which is part of how IE displays the XML, but not of the actual data. If you want to copy the source from IE or SXMB_MONI, right-click first, select 'Display source' and copy that XML to your Integration Builder's Test tab for the message/interface mapping.

You will see that this way, none of the lines in the XML will start with a dash (or minus) character ('-').

Regards,

Koen

Jitendra_Jeswan
Contributor
0 Kudos

Right.

It was a mistake while pasting it to the Forum but my actual File contains the contents as :

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

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

<Name_>

<Name>

<FName>Jeet</FName>

<MName>Anand</MName>

<LName>Jeswani</LName>

</Name>

</Name_>

</ns0:MT1_FCC>

Please guide me now !!

Former Member
0 Kudos

hi jeet,

what is ur scenario , scr and trg structure and hw r u mapping them?

r u able to successfully test execute ur mapping in IR?

regards,

latika.

Jitendra_Jeswan
Contributor
0 Kudos

Here i go once again....

I have file>XI>file without MM and IM, My scenario jucst pick the "xml" file from the sender and give it to the Receiver as "xml".

I have used FCC at receiver side which i want to convert the "xml" to "txt" file:

My source file i have pasted above and i want to generate "txt" file with the following structure:

Jeet#Anand#Jeswani

I have used the following parameter values:

Recordset structure : Name_

Name_.fieldSeparator : #

Name_.endSeparator : 'nl'

Former Member
0 Kudos

Jeet,

Just to be sure: why are you using a message mapping if you're just converting the XML to FF using the file content conversion in the communication channel?

Kind regards,

Koen

Former Member
0 Kudos

Hi

In ur File adapter donot use....namespace in Document namespace...instead write in Recordset namespace.....and message type in RecordSet Name.

Regards

Hemant

Jitendra_Jeswan
Contributor
0 Kudos

Hi Koen -

I am Not using Message Mapping as i mentioned !!

I want to convert the xml into the desired test file thats why i am only using FCC at the receiver side.

Jitendra_Jeswan
Contributor
0 Kudos

Hi hemant -

I didnt get what you menat to convey, can you illustrate it please !!

bhavesh_kantilal
Active Contributor
0 Kudos

For this XML,

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

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

<Name_>

<Name>

<FName>Jeet</FName>

<MName>Anand</MName>

<LName>Jeswani</LName>

</Name>

</Name_>

</ns0:MT1_FCC>

<b>Recordset structure : Name_

Name_.fieldSeparator : #

Name_.endSeparator : 'nl'</b>

These should actually be,

<b>Recordset structure : Name

Name.fieldSeparator : #

Name.endSeparator : 'nl'</b>

Regards

Bhavesh

PS : Is there a problem with mapping or content conversion? You have mentioned you are not using any Mapping and then your subject mentiond problem with mapping!

Jitendra_Jeswan
Contributor
0 Kudos

Hi bhavesh -

I have used the parameter values that u provided and i am getting this error:

Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)(:main:, row=1, col=8) -> com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)'

What could be the probelme !!

bhavesh_kantilal
Active Contributor
0 Kudos

Jeet,

Where is this error ouccring? It looks like a mappuing error.

Refer to this blog and test your mapping,

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

Why dicuss content conversion in the receiver fileadapter when the error is in the mapping?

Regards

Bhavesh

Jitendra_Jeswan
Contributor
0 Kudos

hi bhavesh -

I have not performed any mapping !!

My senario is MM and IM less !!

However still i am getting this error !! I am still wondering why this starnge error is preventing text file creation as desired !!

Please lemme know if you need more information !!

bhavesh_kantilal
Active Contributor
0 Kudos

In which step are you getting this error?

Is it in moni? if yes, then in your interface determination your have selected an Interface mapping, remove this interface mapping from the interface determination and then give it a shot.

Regards

Bhavesh

Jitendra_Jeswan
Contributor
0 Kudos

bhavesh -

As i said i have not used IM, so i had kept that attribute blank in Interface Determination.

still getting this error.

One thing i came to know very intersting is from the blog link that you provided.

I had copied the real inbound message from MONI and pasted that in MM ( i had created it just for the sake of testing the MM) and tested it and it threw the same Error i pasted it in earlier replies.

what do you think could be the Problem !!

bhavesh_kantilal
Active Contributor
0 Kudos

maybe you are looking at the worng interface determination.

Check the MONi for the sender service, interface and interface namespace and check what is the Interface determination that is created for these set of values. To me it looks like the Interface determination has an Interface mapping and maybe youa re looking at the wrong interface determination !

Regards

Bhavesh

Jitendra_Jeswan
Contributor
0 Kudos

Everything is correct bhavesh !!

I tried putting the file again in the source folder and fortunately this time it got processed with No errors. :-). It seems there was some error in the source File that i was putting in the source folder.

However Now the problem is the desired output is not getting generated.

I wanted output as :

Jeet#Anand#Jeswani

However, the Output generated is :

Jeet.

with the following declaration in the content conversion parametres:

name.fieldSeparator = #

name.endSeparator

Jitendra_Jeswan
Contributor
0 Kudos

Soory Missed.

name.fieldSeparator = #

name.endSeparator = 'nl'

Jitendra_Jeswan
Contributor
0 Kudos

Hi bhavesh -

everything workked ..!! However the Parameter values for the desired output is not the one you provided.

The correct Parameter/values would be ...

Recordset structure: Name_,Name

Name.fieldSeparator = #

Name_.fieldSeparator = 'nl'

anyways thanks for help and adding value to my knowledge.