cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Module configuration for FCC

0 Kudos

Hello All,


I am converting an Idoc into txt File using message transformation beam in receiver SFTP adapter

Sample XML Structure is given below,

<Record>

    <Name1>

    <Name2>

      ......

     <Name10>

<Record>

The resulted TXT file when opened in notepad++ or wordpad is having linebreak/Newline.

But when it is opened in windows notepad the line break/Newline is not happening either after header line or after line item segments,

Module Configuration used is given below,

what is the solution and why it is not opening correctly in notepad, any suggestions...??

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi All,

Issue is resolved by using hex value for newline in endseparator module configuration

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Vinoth

This is not the problem with your code. This is notepad issue, generally notepad doesn't shows the line breaks. If your file is properly displayed in notepad++ or textpad then it is fine. Notepad is a basic tool which does not support formatting feature.

You can find many blogs on this topic.

Fix line breaks in Notepad - Microsoft (Windows) Support - Neowin Forums

Notepad doesn&amp;#39;t show line breaks - Super User

https://stackoverflow.com/questions/8755029/windows-notepad-not-supporting-newline-character-n

Regards

Osman

0 Kudos

Hi Osman,

Thanks for your reply,

So is it not possible to produce a notepad file with line breaks using Module configuration in PI..?

manoj_khavatkopp
Active Contributor
0 Kudos

Try removing the word wrap option if enabled in notepad.

0 Kudos

Hi Manoj,

I tried this already and doen't help.

Is their any other configurations needs to be added for generating a notepad file with linebreak..?

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Vinoth,


AFAIK i think from PI you can't handle this , as this is a behavior of notepad because notepad only recognizes CR, LF (0x0d, 0x0a), whereas other sources might use CR only, or LF only.

If you still want to see the output in notepad then copy the content into word and then again copy it back to the notepad.

or try end-separator as '0x0D' or '0x0A'.

Br,

Manoj

justin_santhanam
Active Contributor
0 Kudos

Did you tried importing into Excel and see if the file is formatted correctly? If it is then I shouldn't be worried with the Notepad output you see.

Thanks!