I am running a simple file polling flow service downloaded from SAG.
I have created a file polling port and able to see the file disappearing from the folder.
But in the flow service, i am not able to see the content of the file using debugLog.
The error encountered is:
pub.flow:tracePipeline is your friend to try and work out what’s in the pipeline. It might be that you’re trying to do a String operator on something that is a Stream or it might be a node if it’s xml for instance…
There is no such service which you have mentioned. Even i implemented the same flow steps which Ssagar had flowed but i am getting error like;“error processing service” for file polling.Please help me.
i have tried to create a file polling service (txt file), below is my finding.
for performance and i/o overhead consideration, option 1 is preferable.
option 1:
create a service input named “ffdata” (without quote) as object.
write the flow service as below. pub.io:streamToBytes
pub.string:bytesToString
pub.flow:debugLog
or
option 2:
write the flow service as below.
pub.flow:getTransportInfo
pub.file:getFile (base on filepolling->filename) pub.io:streamToBytes
pub.string:bytesToString
pub.flow:debugLog
ssagar, check the input type you have defined for “ffdata”, it must be defined as object.
if you are receiving xml file, then you will need to define a “node” object for your input instead.
you can always use pub.flow:tracePipeline at the begining of the flow service to know what kind of input pipeline you will received.
tanveer, your error description is too brief, for development, it’s advisable to turn your debug log level to more details