Hi all,
I have a child job that will archive a file then delete that file immediately after it's been archived. Initially I did this using the Mac version of the studio and everything was working but with the same job but different file directory, it doesn't work when using the Windows version of the studio.
If I were to run the child job separately to just archive and delete the file it would work, but when running the parent job that calls the child job, it will only archive the file but not delete it.
Essentially my child job just looks like the screen shot below. I know for sure that the directory I use is correct because I can run the subjob independent of the parent and everything was working. I also know the parent job is also working because I tested this initially when working on the Mac version of the studio.
Is there a reason why when testing this on the Windows version that my job would stop working? Could the file still be locked and is read only after archiving the file and that's why the job can't delete it?
Sorry, maybe my initial post wasn't clear enough but the job I have running the tFileArchive->tFileDelete is working fine by itself.
If I just run those 2 components by itself, everything is working and the file is being deleted. It's just when I run that job as a child job from another job that the file does not get deleted.
The idea behind this is a have a re-usable job that archives and deletes the file after a web service is run. The parent job will pass a file directory depending if it succeeds or fail and the archived file will be stored in different folder directories depending on the passed directory string. All the archiving stuff is working fine. The files are being archived into the correct folder but I need that file to be deleted and it is currently not.
Hi, Could you please show us your whole job design screenshots so that we can see if there is anything wrong with your Parent job? Best regards Sabrina
Hi
quakev0, For your First Post:
Is there a reason why when testing this on the Windows version that my job would stop working? Could the file still be locked and is read only after archiving the file and that's why the job can't delete it?
Option 1: If there is any restriction on file like read only it will throw error like "File is read only unable to delete ". Hope for you such Error is not getting?
Option 1: As per my understanding you have imported that Job(Item) which was created in MAC environment to Windows? Instead of doing that can you please create a separate Child jon and parent job in windows and check once because i have tried in windows it is working fine. PFA.
Regards
Srikanth