3

When using ArcGIS ModelBuilder, how do you set the creation of a feature dataset as a precondition to an iterative process, and not have it re-create the feature dataset each time through?

This is the model that I'm using:

enter image description here

I need the model to first create the feature dataset Test_FD and then populate that with feature classes in TestGDB. However, the model creates the feature dataset each time through the iteration. How can I get it to only create the feature dataset once, and then run the iterative process?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Renee Cammarere
  • 1,025
  • 8
  • 20
  • 1
    You are experiencing what a lot of people don't understand about an iterator. EVERYTHING runs in a model with an iterator X number of times, even upstream workflows feeding into the iterator. As @HavardMoe suggests you need the iterator and copy features part in a sub-model. The master model would have your create featuredataset tool acting a precondition to the embedded sub-model. – Hornbydd Oct 08 '14 at 09:13
  • Yes, thanks for this information. I had nested the part that creates the FD into a sub-model, but that wasn't doing the trick. I had to put the iterative part into a sub-model. – Renee Cammarere Oct 08 '14 at 13:09

1 Answers1

4

I'd try nesting the iterate part in a sub-model - as suggested in this earlier question: How to prevent running part of a model when iterator is used?

HavardMoe
  • 761
  • 4
  • 10