Can't delete intermediate data in model tool

631
1
11-04-2016 06:50 AM
JonathanBailey
Occasional Contributor III

I've created a model tool that creates an SDE connection file in %scratchFolder%. Once The model is complete, I'd like to delete this connection file to avoid warnings the next time the model tool is run. In ModelBuilder, I don't have the ability to mark the SDE connection file as Intermediate (the item in the context menu is grayed out). I've also tried adding the Clear Workspace Cache tool to the model, without success.

0 Kudos
1 Reply
ScottMoyer
Occasional Contributor

If you run the model from the tool dialog box (toolbox), intermediate data will not remain ('most' I read somewhere). If there is some intermediate data that you want to keep, in ModelBuilder make the output a model parameter.

Scott

0 Kudos