on 05-21-2007 3:22 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Barry,
Try adding the parameter
detail.fixedLengthTooShortHandling Cut
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.