Skip to main content
Question

How do I set my writer to override existing file?

  • Mar 31, 2016 5:49 PM UTC
  • 2 replies
  • 680 views

Lets say I have a routine with a writer and I run it. Now I want to run the same routine without having to change the writer file name. I want it to delete the old file and create a new one or Override the old file. How do I change the settings in the writer to do this?

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

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • Mar 31, 2016 5:52 PM UTC

This depends on the writer you are using.

Default setting for most file based writers is to overwrite any existing file.

Some writers have a setting to either overwrite or append to a file.

Some files can not be overwritten if opened by another application (XLS, PDF and maybe others).


Forum|alt.badge.img
  • Mar 31, 2016 6:39 PM UTC

If by any chance it is a geodatabase, then you can set the option of Overwrite Database to Yes when you first add a writer.