cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Message Transformation Bean not converting csv to xml

Former Member
0 Likes
3,056

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

View Entire Topic
manoj_khavatkopp
Active Contributor
0 Likes

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

Former Member
0 Likes

Thanks for the response Manoj... but somehow this is also not working.

manoj_khavatkopp
Active Contributor
0 Likes

Can you please share the screenshot of your MTB. and also for the file which it is throwing error.

Former Member
0 Likes

Attached is file & screenshot.

I have tried with field separator as nl.

But nothing is working.

manoj_khavatkopp
Active Contributor
0 Likes

What's the error you are getting ?

Former Member
0 Likes

mapping error.. since file is not getting converted to xml.

Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog., ApplicationRuntimeException: Runtime Exception when executing application mapping program