I have tried other ways to call the API. The closest I have been is using the tFileFetch component. I am able to load the file using the upload field and the service responds only with the header of the response and an error message saying “java.io.FileNotFoundException: \defaultfilename.txt (Access is denied)”. What seems like is the code is still looking to fetch a file when I am calling a post method. I am attaching the zip file with just the tFileFetch component to it.
Have any of you encountered it?
Are you using a relative path for your Destination filename and your have full read/write permission to?
I am actually not using the tFileFetch to "fetch" a file but to rather upload a file to the API.
Either way I have complete access to any folder on my local machine.
Would you mind posting your job design screenshot on forum which will be helpful for us to address your issue?
Please mask your sensitive data.
I am attaching images of my tFileFetch component.
It is very simple. Giving the API to call, passing a few header parameters, passing a few body parameters and in the advanced setting providing the file to upload.
I was able to get rid is this error by using the cache option:
go to TFileFetch component >> basic settings >> Select the check box : Use cache to save the resource
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema