Sometimes, when working with Reporting Outputs (Vía the Render Tool), we need to avoid overwriting files that exists on the destination location.
This macro will evaluate if a Report Output (File created with the render Tool) already exists in the selected path. If exists, it'll throw an error, avoiding the overwriting of the file.
Later, you can attach a Render Tool, and use the same path ([FileToWrite]) used in the macro, to replace and save your rendered report.
The Render Tool setting to re-use the previous path: