A "The file exists." Error Occurs When Publishing a Workflow Or Viewing the Rule Manager in Workflow 8.

March 12, 2013 | KB: 1013001
Workflow Suite 8

Summary

When publishing a workflow, you may receive the following error message:

    Failed to publish workflow 'SampleWorkflowName': The file exists. [0411-WF0]

When viewing the Rule Manager, the center pane displays:

    The file exists.

Cause

This issue can occur due to a .NET Framework limitation with the total number of temporary files in the Windows Temp directory.

Resolution

This issue is resolved in the Laserfiche Workflow 9.0 installation released after November 5, 2012. Please download the more recent version of the Workflow 9.0 installation. If you installed Workflow 9.0 prior to November 5, 2012, uninstall Workflow 9 and use the new installation package to reinstall.

Note: The Laserfiche Avante 9.0 and Laserfiche Rio 9.0 installation packages were also updated to include the new Workflow 9 installation.

After reinstalling, you may also need to clear out your temporary folder if the issue caused you to reach a .NET Framework limitation with the total number of temporary files in the Windows temporary directory. If you encounter this limit, you may see the following error message when publishing:

    The file exists.

    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.__Error.WinIOError()
    at System.IO.Path.GetTempFileName()

Another symptom can be that the Designer will not fully load and you will see this error message:

    The design-mode window layout failed to load. The default will be used. [0421-WF0]

Note: Your Windows temporary directory is defined as a system environment variable. On Windows 7, the default location is C:\Users\YourUserName\AppData\Local\Temp.

Related Links

[KB:1013094]1013094 Workflow Designer 9 May Continuously Create Temporary Files In Your Windows Temporary Folder When Participating In The Customer Feedback Program.

If you have Office Integration 9.0.0 installed, please see the following Knowledge Base article.

1013106 List of Changes for Laserfiche 9.0.0 Service Pack 1.