Replies: 2 comments
-
How are you kicking off the channel if its a Channel Reader? Do you have the 'test' folder already created that the code is trying to write the file to? |
Beta Was this translation helpful? Give feedback.
-
Change your source to a Javascript Reader. This type is a polling type and literally runs Javascript to generate the source message. Once the connector polls and generates a source message then it will kick off any source transformers as usual. A dummy JS Reader would just call It may make sense to call your sftp function from the JS Reader directly instead of as a source transformer, however I do not understand the use case well enough to make a suggestion about t hat. |
Beta Was this translation helpful? Give feedback.
-
Anyone know if the function can be called from a Source transformer?
I'm Looking to use it as a SFTP reader and read files in subfolders. But its not doing anything, no errors or logs from what I can tell.
Code:
sftpGet("127.0.0.1",22,"username","password",true);
I've modified the 'called' function itself for my env,
Added the function to Code Templates,
Set dependencies in code Template lib,
Set Source type set to Channel Reader.
thanks.
Beta Was this translation helpful? Give feedback.
All reactions