on 06-19-2017 10:19 AM
Hello,
I have to transform CSV to xml in SFTP adapter. Although we can use content conversion but it was not working so i used Message Transformation Bean. File is getting picked up but i am getting error in mapping.. since the file is not getting converted to xml.
Error message : com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.,
Attached are screen shots for module used, can somebody please tell me where am i making mistake? Do i have to add/remove any parameters ?
Regards
Ankyy
Hello All,
I am closing this thread. Thank you for help.
Regards
Ankyy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankyy!
You've missed the dot in parameter's name "Transform.Class".
One more question: do you need your header record in further XML processing?
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice Catch.
Hi Ankiy,
Please check below :
But note MTB dose't has a option of Removing of RecordSet hence the XML converted by MTB dosne'nt match with your current structure you either need to change your source structure or you need to remove this Recordset via java/xslt before passing it to your mapping.
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankyy!
Why did you set 'nl' as field separator when you have comma separated values in your source file?
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankyy,
Are you sure your XML is encoded in UTF-8? If yes, then please check if there are any characters before: <?xml
Probably you have a problem with the BOM (byte order mark) - please check if there is a sequence of bytes: EF BB BF at the beginning of your XML file.
Could you request a file without any additional characters at the beginning of your XML?
Regards,
Andrzej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.