Question

How do I set my writer to override existing file?

  • 31 March 2016
  • 2 replies
  • 94 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?


2 replies

Userlevel 2
Badge +16

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).

Badge

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.

Reply