on 09-01-2017 11:31 AM
Hi Sdner's,
Scenario: SFTP to SFTP FlatFile PassThru
Input FlatFile Encoding: UCS-2 LE BOM
Expected output FlatFile Encoding: ANSI
I am using MessageTransformbean and TextCodepageConversionBean in receiver SFTP adapter but file is getting altered. NULL spaces and CRLF were added to file.
PFA ouput file generated.
Please advice if any fix/alternate solution ?
PI Version: 7.5 Single Stack, SP-05, Windows installation, Java Ver- 1.8.0_144
Hi Kiran,
Try to avoid plan2XML conversion at the sender. Apply UTF-8 encoding on the sender side and do java mapping to arrive at dynamic file name and then covert encoding to ASCII in the receiver.
Hope it works!
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghu,
I think because of some legacy system dependency they need target flat file encoding in ANSI.
Also I've tried below stuff but still no luck 😞
1. SFTP-->SFTP Pass Thru (not working the ANSI file is getting generated but with null spaces and which is not correct file format)
2. SFTP(FlatToXML)-->Java Map(Converting XML encoding frm UCS-2 LE BOM to ANSI)-->MM(To Sort out the empty lines)-->SFTP(XMLToFlat)
Getting below error(This error I am getting after Sender SFTP Adapter converts FlatFile to XML):-
3. Flow1= SFTP-->NFS(Pass Thru) & Flow2= NFS-->SFTP(Pass Thru).
My Observations:-
1. SFTP Sender Adapter is appending special to file chars in Pass Thru/Non-Pass Thru.
2. SFTP Receiver adapter is adding null spaces to target ANSI file generated in Pass Thru/Non-Pass Thru.
3. Even I’ve tried doing SFTP-->SFTP Pass Thru without changing any encoding in PI but still file is getting appended with some special chars.
I feel this is something SFTP Adapter Bug which needs to be raised with SAP ?
Can you please share the source file which is in UCS-2 LE BOM format.
when I try this it notepad and convert to ANSI I am getting some other characters
??1�0�1� �8�8�8�8�8�8�8�8�4� �0�0�0�0�0�0�1�4�5�1�7�0�8�0�7�0�9�0�0�1�0�9�4�1�0�1�D�I�N�E�R�S� �T�R�A�C�S� �F�A�S�T� �E�N�T�R�Y�O�P�E�N�T�E�X�T� �
�
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
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.