Error "System.IO.IOException: The file exists"
Background
Meridian Enterprise Server logs the results of every action that it takes to event logs as described in Viewing the event logs.
Description
This error can occur in the event log after rendering with the AutoVue rendering module fails, which can also block further processing of the publishing queue. This can be caused by too many temporary files (with 4 character hexadecimal filenames) created by the AutoVue rendering module in the %temp% folder on the server for the service account (C:\Users\<ServiceAccount>\AppData\Local\Temp\BCTemp).
This can occur when:
- Rendering a batch of more than about 65500 files
- Rendering previously failed for some reason (for example, due to a timeout) and many temporary files were not automatically cleaned up. The old temporary files can accumulate over time and increase the chance of this error.
To resolve this problem, manually delete the temporary files in the folder. We recommend that you also create a scheduled task to periodically clean up the %temp% folder when no rendering jobs are running to prevent this problem from repeating.