Input folder not updating in model builder

1444
2
06-13-2017 06:41 AM
by Anonymous User
Not applicable

I'm trying to build a model that starts with data from an input folder that is updated periodically. However I noticed that the input folder in the model does not update automatically as the input folder is updated with new data. The first tool in the model is the Select Data tool that pulls a subfolder from the input folder. My current workaround is to delete and re-enter the same input folder every time I run the model in order to force it to update, but is there a way to automate the update? I'm not familiar with Python so I'm trying to find a way to use the visual coding tools available in model builder. Thanks.

0 Kudos
2 Replies
curtvprice
MVP Esteemed Contributor

A few things to try:

  • Validating the model (check mark tool)? 
  • Close and re-open the model
  • If another program is modifying the folder, ArcGIS can't "see" the changes until the catalog gets refreshed (in ArcMap, right click the folder, Refresh). In ModelBuilder, you could use the Calculate Value tool to run arcpy.RefreshCatalog(r"%Input workspace%") on the workspace, and make sure the Calculate Value tool is a precondition to your Select Data.
AbdullahAnter
Occasional Contributor III
0 Kudos