Skip to Content
author's profile photo Former Member
Former Member

PI File Receiver Skip first line

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Apr 25, 2012 at 11:45 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.