Video Screencast Help

Execute Batch Component - "System.IO.IOException: The file exists"

Created: 20 Sep 2012
JAguiar26's picture

Workflow Version: 7.1.1400.28

Scenario:

Using the Execute Batch component for "NET USE" and/or ">> Logfile.txt" commands.  The processes ran for a period of time, but began throwing the following error through the Error output path - not a workflow exception.

This was not tested on the "Execute Process" Components.

Component Error:

System.IO.IOException: The file exists. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Path.GetTempFileName() at LogicBase.Components.Default.Process.ExecuteBatch.get_OutputFileName() in c:\build\projects\WF71MR2\components\LogicBase.Components.Default\Process\BatchExecuterMultiPath.cs:line 86 at LogicBase.Components.Default.Process.ExecuteBatch.Run(IData data) in c:\build\projects\WF71MR2\components\LogicBase.Components.Default\Process\BatchExecuterMultiPath.cs:line 174

Solution:

On the Workflow Server, the "C:\Windows\Temp" folder is full.  Clearing this folder will allow the componet to process properly. 

 

Request to Symantec Workflow Team

One or any of the following options would be a nice feature request to this component.

  • Add an option to "remove temp file" after running
  • Automatically remove the temp file after run
  • Output the temp file info to allow the developer to build in the logic to "delete" the temp files created.