Skip to Content
avatar image
Former Member

SFTP Module configuration for FCC

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...??

1.JPG (140.5 kB)
3.JPG (143.5 kB)
2.JPG (73.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 24, 2015 at 09:52 AM

    Hi All,

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 23, 2015 at 02:46 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Osman,

      Thanks for your reply,

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

  • Dec 23, 2015 at 02:45 PM

    Try removing the word wrap option if enabled in notepad.

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Dec 23, 2015 at 02:35 PM

    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!

    Add comment
    10|10000 characters needed characters exceeded