tFileCopy will not remove source file

One Star

tFileCopy will not remove source file

When remove source file is checked, the source file is not being removed in TIS 4.1.2
Is there a patch out for this?
Community Manager

Re: tFileCopy will not remove source file

Hi
Can you upload a screenshot of job? Make sure the file is not open by other component/application at that time.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tFileCopy will not remove source file

I've tried connecting the tFileCopy with OnSubJobOK and OnComponentOK. The problem still persists.
Community Manager

Re: tFileCopy will not remove source file

Hi
There is a design problem in your job, the file is still open by the tFileUnarchive. The job looks like:
tLibraryLoad
|
onsubjobok
|
tFileList_1--iterate-->tFilleunarchive.
|
onsubjobok
|
tFileList_2(iterate the folder again!!)--iterate-->tFileCopy
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tFileCopy will not remove source file

Hi shong,
I tried iterating on the folder again in a new tFileList but I am still getting the "The source file could not be removed from the folder because it is open or you only have read-only rights." error.
Community Manager

Re: tFileCopy will not remove source file

Hi
I tested and got the same problem, please report a bug on our bugtracker.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tFileCopy will not remove source file

One Star

Re: tFileCopy will not remove source file

Is it possible another solution can be had?
Community Manager

Re: tFileCopy will not remove source file

Hi
There is a workaround to achieve your request, copy the file to destination directory and remove the file from source directotry first and then unarchive the file to source directory. please see my screenshots.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business