Select to view content in your preferred language

Can't delete XML file used in model

743
1
11-04-2016 06:58 AM
JonathanBailey
Frequent Contributor

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 Emeritus

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