Making intermediate data managed data

In some cases, model tools are unable to create intermediate data. When a model is meant to create intermediate data but is unable to do so, the model will fail and display error messages. These error messages may contain statements like "Unexpected error" when the model cannot create its intermediate data, typically because the output folder or geodatabase does not exist.

One technique that ensures that models can create and delete intermediate data is to manage all intermediate data variables with the model. When data elements are managed by the model, they are stored by default in the scratch workspace (if this environment is set) or other system paths.

Steps:
  1. In ModelBuilder, right-click all intermediate data variables one at a time and choose Managed. A check mark appears next to Managed.
  2. Click Model > Model Properties.
  3. Click the Environments tab.
  4. Expand the Workspace category and check Scratch Workspace.
  5. On the Environment Settings dialog box, navigate to the workspace file geodatabase that you want to use for writing the scratch data.
  6. Click OK.
  7. Execute your model.
  8. Making intermediate data managed will ensure that ModelBuilder manages the intermediate data, and setting the scratch workspace ensures that the intermediate data has a place to be created and deleted.

Related Topics


9/13/2011