Table writer: overwriting file doesn't keep it saved for new jobs

Hello everyone,

I encounter what I think might be a bug, but perhaps is how it’s supposed to be.
The situation is this:

I have a workflow that gets the data from a KNIME table, concatenates some data and then overwrites the .table which is located on the workflow data area.

The thing is that if I deploy it on the server and I execute it as a job, inside the job itself it works as it should, the problem is that when I execute the workflow again and thus create another job the table that I use it’s not overwritten by the previous job, instead it takes the original table which is uploaded together with the workflow originally.

Is it a normal function that I cannot overwrite files in the data area to be used for further executions?

Here is a sample workflow to replicate it:
image
image
image

Here I just have a simple table where I add a row to it and overwrite the file.
When I execute the workflow again it should read the file and it should contain the previously overwritten file, which is not the case and it reads instead the originally uploaded file.

Let me know if furthers details are needed.

Cheers,
Cristian

Hi @rastasanu and welcome to the KNIME Forum.

If you use Relative to “Current workflow data area” everything written to it during job execution is discarded with the job. That is why it is not updated, because it is executed by taking the file from the workflow, not from the previous job.

In this specific situation, I would prefer to use Relative to “Current Workflow” if you want to overwrite the table file on each run.

I hope this information helps.

All the best,

Jose.

4 Likes

Hi @josegallardo ,

Thanks for the reply! Indeed with relative to Current Workflow it works.

I was trying however to have a solution that is more integrated and “invisible” and I thought that maybe the file in the data area that is changed is the workflow’s data area and not the job’s.
But if this is how it’s supposed to work then I will have to go on with the other solution.

Thanks again for the clarification and have a great day!

Cheers,
Cristian

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.