cancel
Showing results for 
Search instead for 
Did you mean: 

Zipping and content conversion

Former Member
0 Kudos

Hi all,

I have a scenario where I m creating a zip file, which also needs content conversion.

Since FIle content convesrion doesnt work with PayloadZipBean, I changed the message protocol to File and added the module AF_Modules/StrictXml2PlainBean. With this I m able to give field lengths or field separator, but not both together.

If I give fieldSeparator alone, it works fine.But if I give fieldSeparator and fieldLengths, then only fieldLengths come effective.

My requirement is to create a file which is fixed length and ; separated. Please give some ideas to achieve both together.

Thanks a lot in advance!!

Anjana.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Anjana

 
Since File content conversion doesnt work with PayloadZipBean, I changed the message protocol to File and added the module AF_Modules/StrictXml2PlainBean. 

I suppose this part you are able to achieve so moving to your next requirement :

 
My requirement is to create a file which is fixed length and ; separated. 

Add feilds with constant ; after each field in the target structure and include the same in your field lengths parameter in modules. Now PI will take these ';' as a new field and do the content conversion as per fixed field length. Which solves your problem.

Regards

Raj

Former Member
0 Kudos

Raj,

Thank you so much for your response.

I did the change and it is working perfect now. I assume there may be no way to do it like we do it in FCC.

Thanks a lot!!!

Thanks,

Anjana.

Edited by: Anjana S on Oct 18, 2011 6:40 PM

Answers (0)