on 06-06-2007 9:09 AM
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...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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 !!
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'
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!
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 !!
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
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 !!
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
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
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.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.