Created on
11-21-2019
09:49 PM
- last edited on
11-21-2019
10:17 PM
by
ask_bill_brooks
From oracle I get a finished xml file using a select
select
xmlelement (
etc.
I do not need to convert the received data to anything, just save it to a local disk.
But I can’t figure out how to do this.
Ideally, I see it like this "ExecuteSQL" →"PutFile"
Created 11-22-2019 08:39 AM
Hi,
Sorry I don't get the question.
This should work:
Ideally, I see it like this "ExecuteSQL" →"PutFile"
Assuming based on comment you are getting a finished xml.
Created 11-24-2019 07:29 PM
I apologize, maybe I did not describe the problem in sufficient detail.
With such a scheme, I get the file in the output as in the screenshot, spurious data appears in it.
Invalid xml file
At the moment, I am forced to use a ReplaceText processor to remove unnecessary data, but it is very slow.
Created 11-25-2019 06:11 AM
That data seems like avro which is typically how the records are returned from a DB.
You should send the FlowFile to a ConvertRecord processor and set it as an avro reader and an xml writer.
This article has good information on how to do that.