cancel
Showing results for 
Search instead for 
Did you mean: 

PI File Receiver Skip first line

Former Member
0 Kudos

Hi all,

I have a file receiver with content convesion running, but the first 2 lines of the file are empty lines.

I'm not printing header line, my parameters are:

endSeparator = 'nl'

addHeaderLine = 0

fieldFixedLengths = 1,9,4,2........................

fixedLengthTooShortHandling = Cut

I want my first line in the file is data line directly.

Any help?

Thanks!

Urtzi.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi,

This might be caused by your target structure:

<MT_MessageType>

    <Field1>...</Field1>

   <Field2>...</Field2>

    <Structure1>...</Structure1>

    ...

</MT_MessageType>

Is your target structure like that? If so, this is a standard behaviour of receiver FCC. All the structures under MT_MessageType are properly converted into file lines. But all the fields that are not included into some structures, are converted to a single occurrence of the endSeparator (since PI also tries to convert them into file lines, as structures with no fields below). In your case, two "loose" fields create two new line characters, and then comes the rest of your structure.

Hope this helps,

Greg

Former Member
0 Kudos

Hi Grzegorz,

Yes, this is my case. How can I avoid it, only entering Field1 and Field2 into a new structure?

Thanks!

Urtzi.

former_member184681
Active Contributor
0 Kudos

Hi,

Yes, I believe this is the only option if you want to use FCC. You could think of an adapter module that will work with your current structure, but changing the structure is definitely the simplest solution.

Regards,

Greg

Shabarish_Nair
Active Contributor
0 Kudos

I echo Grzegorz. The best solution will be for you to modify the structure or remove the mapping for the fields that you dont need to that they are not created in the output XML. Or else, add another mapping after your current mapping which will remove the unwanted fields from the XML.

Any specific reason you cant do this? If so, then module is the option that you have.

Answers (0)