Skip to Content
0
Former Member
Apr 03, 2008 at 02:14 PM

Error in Receiver FCC: Unknown structure ... found in document

127 Views

Hi Experts,

I have a problem with the Receiver File Adapter. I want to use Content Conversion to generate a plain file.

Input to receiver file adapter:

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

<PlainFile>

<filename>filename.txt</filename>

<line>Line 1</line>

<line>Line 2</line>

...

</PlainFile>

Wanted result: a file filename.txt with this content:

Line 1

Line 2

...

FCC settings:

RecordSet Structure: line, filename

line.fieldSeparator:'nl'

filename.fieldFixedLengths:0

filename.fixedLengthTooShortHandling:Cut

Problem is: the adapter throws error "Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'PlainFile' found in document'"

If I use:

RecordSet Structure: PlainFile, line, filename

and add:

PlainFile.fieldSeparator:'nl'

... the lines are printed, but also the unwanted filename. The XML input results from an 1:n mapping, therefore I want to set different filenames by variable substitution from the payload.

Many thanks for your help,

Ralf