cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member189420
Active Participant
0 Kudos

Hello,

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

Hope this works!

Regards,

Anand Patil

Former Member
0 Kudos

endSeparator space is adding space as a delimiter

and beginSeparator is appending 'nl' as a leading string

Thanks

Former Member
0 Kudos

How the issue got solved? i am facing similar issue.

Any clue guys?

stefan_grube
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Recordset Structure: ns1:MT_SAP,REC,Header,Detail

ns1:MT_SAP.fieldSeparator '0'

ns1:MT_SAP_PNC_PPAY.fieldContentFormatting nothing

REC.fieldContentFormatting nothing

REC.fieldSeparator '0'

REC.processConfiguration FromConfiguration

Header.fieldFixedLengths 10,20,8,20

Header.endSeparator 'nl'

Header.fixedLengthTooShortHandling Ignore

Header.fieldNames Field1,Field2,Field3,Filler

Header.fieldContentFormatting nothing

Detail.fieldFixedLengths 10,8,8

Detail.endSeparator 'nl'

Detail.fieldNames Field1,Field2,Filler

Detail.fieldContentFormatting nothing

Detail.fixedLengthTooShortHandling Ignore

Former Member
0 Kudos

Any thoughts on this?

Former Member
0 Kudos
Recordset Structure: REC,1,Header,1,Detail*

Header.fieldFixedLengths 10,20,8,20
Header.endSeparator 'nl'
Header.fixedLengthTooShortHandling Ignore
Header.fieldNames Field1,Field2,Field3,Filler
Header.fieldContentFormatting nothing
Detail.fieldFixedLengths 10,8,8
Detail.endSeparator 'nl'
Detail.fieldNames Field1,Field2,Filler
Detail.fieldContentFormatting nothing
Detail.fixedLengthTooShortHandling Ignore

Try above configuration..

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Sai,

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

Thanks,

Former Member
0 Kudos

Add the below parameters in your FCC and then try.

Header.fieldContentFormatting = nothing
Detail.fieldContentFormatting = nothing

Former Member
0 Kudos

I tried all the above options.. It didn't work..

Regards

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

I don't see spaces in text pad as well.

Thanks