Is it possible to move files to an error directory when a FeatureWriter fails? Unfortunately, I have not found a way so far. Is there any other way than to use an FMEServer Automation that triggers another FME Workbench in case of an error, which only moves files to a directory? Is it possible to achieve this with only one FME Workbench?
Solved
Move files to error directory after failed FeatureWriter
Best answer by virtualcitymatt
Hmm, What kind of files would you be moving? input files or some kind of half written output?
Assuming a FeatureWriter fails you can use a Filecopy writer to move (or copy) files to a new directory. You'd need to attach the workflow to all your FeatureWriter rejection ports though (this also assumes a feature will come out of here).
Another option could be to create a python shutdown script - this could achieve what you want as well and might make it look cleaner?
https://community.safe.com/s/article/shutdown-python-scripts-in-fme#:~:text=In%20the%20Navigator%20pane%2C%20go,workspace%20with%20your%20own%20data.
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.