ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Unable to publish Workflows intermittently with error: The directory is not empty

book

Article ID: 162179

calendar_today

Updated On:

Products

Workflow Solution ServiceDesk

Issue/Introduction

When publishing Workflows, an error occurs indicating that publishing the Workflow failed because the directory is not empty. This occurs regularly, but not everytime when trying to publish. Application Name : LogicBase.ToolCore.exe Process ID : 9088 Date :7/10/2015 4:05:55 PM Log Level :Error Log Category :EntManDeployAction Machine Name : MHP160SRVC01 Message : System.IO.IOException: The directory is not empty. at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive) at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive) at LogicBase.Tool.Deployment.DeployAction.CreateDeploymentImage(ApplicationProperty[] deployedProperties, String baseUrl, Boolean showPropertyEditor) in c:\build\projects\WF75_SDSP1_Apollo\core-tool\LogicBase.ToolShared\Deployment\DeployAction.cs:line 245 at Symantec.Workflow.Plugins.Deploy.EntMan.EntManDeployAction.DeployProjectToServer(ApplicationProperty[] properties, String server, String vdir) in c:\build\projects\WF75_SDSP1_Apollo\plugins\Symantec.Workflow.Plugins.Deploy.EntMan\EntManDeployAction.cs:line 77 at Symantec.Workflow.Plugins.Deploy.EntMan.DeployControl.PublishProject() in c:\build\projects\WF75_SDSP1_Apollo\plugins\Symantec.Workflow.Plugins.Deploy.EntMan\DeployControl.cs:line 470 

Cause

An external service was monitoring files that publishing was creating and deleting. The monitoring service seems to have put file locks on some files as Workflow tried removing this, preventing publishing from occurring. The monitoring service was scanning all files, but specifically the temp files that get created under the users directory caused the problem.

Resolution

Disable all monitoring services, or prevent monitoring services from monitoring the local users tmp directories as well as all other Workflow directories. Monitoring Services that lock files used by Workflow can cause problems in many areas.