Skip to main content
Archived

'Overwrite existing file' parameter - ignore if file does not exist

Related products:Integrations
  • August 15, 2017
  • 2 replies
  • 77 views

chriswilson
Enthusiast
Forum|alt.badge.img+22

I have a workspace in which I would like to overwrite an existing Excel spreadsheet if it exists - it might or it might not depending on other things. If I leave 'overwrite existing file' set to 'yes', the workspace will fail when it doesn't find an existing spreadsheet. This also happens with file geodatabases.

Perhaps a setting of 'yes - if existing' could be added?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • August 15, 2017

Hi @chrisw84, in my experiences, the Excel writer (at least in FME 2016 and 2017) seems to create a new file successfully if it doesn't exist, even if the Overwrite Existing File parameter is set to "Yes".

With what conditions did the writer fail?


chriswilson
Enthusiast
Forum|alt.badge.img+22
  • Author
  • Enthusiast
  • August 15, 2017

Hi @takashi. Any time I have this set to 'yes' and a file does not exist, the process fails citing that it cannot overwrite the destination file. I will have a look and see if I have a log file with this info, but in FME 2016 at least it always fails for me.