Record Structure Requirement
When writing XML data, the destination expects all record data under a single root field. When necessary, merge record data into a root field earlier in the pipeline. You can use the Expression Evaluator and Field Remover processors to perform this task.
For example, in the following pipeline, the Expression Evaluator uses the expression,
${record:value('/')}
, to create a root field and copy the entire
record under the root field:
Then, you can use the Field Remover to keep only the root field, which removes all other fields: