Skip to Content
avatar image
Former Member

PI 7.1 Receiver file adapter - Spaces are truncated at end of each line

In Receiver file adapter, I specified file content conversion parameters. My file structure is as below:

Header

Field1 10

Field2 20

Field3 8

Filler 20

Detail

Field1 10

Field2 8

Filler 8

In both Header and Details structures I have to fill 20 and 8 spaces at end of each line. In XML (Payload) I can view the spaces. But when the text file is created all the spaces are truncated.

Could you please solve this issue.

Regards

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Aug 20, 2010 at 10:10 PM

    Sai,

    It depends on what editor you are using. Some editors won't show the spaces. I am not sure, but I guess textpad might be able to show blank spaces, try that once.

    Regards,

    Neetesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2010 at 11:35 PM

    Just one suggestion.

    Header

    Make Field3 length as : 28

    Detail

    Make Field 2 lengh as : 16

    then try to see if it is creating those spaces in your text file or not.

    Thanks,

    Hetal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2010 at 08:26 AM

    Add the below parameters in your FCC and then try.

    Header.fieldContentFormatting = nothing
    Detail.fieldContentFormatting = nothing

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2010 at 04:45 PM

    Hi Sai,

    As the length of the fields has been fixed,so use the parameter NameA.fixedLengthTooShortHandling

    Thanks,

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 23, 2010 at 07:00 AM

    could you post your FCC parameters to see if they are correct?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      This is for the receiver file adapter.

      I got the below error in communication channel monitor:

      Parameter HEADER 1.fieldFixedLengths or HEADER.fieldSeparator is missing

      It is treating 1 as part of the structure name..

  • avatar image
    Former Member
    Aug 25, 2010 at 04:20 PM

    Hello,

    Can you try by using endSeparator as space and beginSeparator as 'nl'.

    Hope this works!

    Regards,

    Anand Patil

    Add comment
    10|10000 characters needed characters exceeded