cancel
Showing results for 
Search instead for 
Did you mean: 

Remove blank line after File Content Conversion

Former Member
0 Kudos

I have a File>Conversion on PI7.0 (SP10).

It seems to add a blank line. The XML is:

<?xml version="1.0" encoding="UTF-8" ?>

- <ns0:EPIWCountFile xmlns:ns0="urn:com.somewhere.overthere.nothere">

<Personal_Area>LU</Personal_Area>

- <detail>

<recordCount>17</recordCount>

</detail>

</ns0:EPIWCountFile>

The conversion is done:

recordset Structure=detail,

name=detail.fieldseparator ,

The output file is



17

Hopefully you can see the blank line before the number!???

I have changed the contexts while processing, and played with other options, but it always adds a blank line at the begin.

All this file is a count of the number of records processed. (The personal_area is for a variable name for file/folder creation)

How can I remove the blank line, as the target system fails due to this anomaly?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Barry,

I would suggest you to change the target message type and try. Change like this:

Record

--Personal_Area

Detail

--recordCount

Also take Detail are recordCount as 1..1 and when you map the recordcount put the source to the top context level. Then I think your issues should be resolved.

---Satish

Former Member
0 Kudos

If you are in a development environment, try this

Make your target structure

<?xml version="1.0" encoding="UTF-8" ?>

- <ns0:EPIWCountFile xmlns:ns0="urn:com.somewhere.overthere.nothere">

- <detail>

<b><Personal_Area>LU</Personal_Area></b>

<recordCount>17</recordCount>

</detail>

</ns0:EPIWCountFile>

Content conversion parameter

detail.fieldFixedLengths 0,2

detail.fixedLengthTooShortHandling Cut

P.S: If you need <Pesonal_Area> tag only for File/Folder Name, then why dont you use Adapter specific Identifiers to achieve the same.

Regards,

Jai Shankar

Former Member
0 Kudos

Barry,

Try adding the parameter

detail.fixedLengthTooShortHandling Cut

Regards,

Jai Shankar

Former Member
0 Kudos

Jai Shankar

Thank you for the response, however, after adding this new parameter, the problem still persists.

Regards