Can't delete XML file used in model

522
1
11-04-2016 06:58 AM
JonathanBailey
Occasional Contributor III

I've created a geoprocessing model that uses the Import Message tool in the Distributed Geodatabase toolset. Once the model is complete, I'd like to delete the data changes message XML file used by the tool. However, I get a file lock error when trying to delete the XML file. I've tried adding the Clear Workspace Cache tool to the model before deleting the XML file, but without success.

0 Kudos
1 Reply
DanPatterson_Retired
MVP Esteemed Contributor

once a lock occurs, you are done...until arcmap restarts...however, why don't you add a process to the beginning of your model that checks for the existence of the file and tries to delete it before the rest of the model.

0 Kudos