1

I am working on building a model in ArcMap 10.4.1 ModelBuilder. This particular model iterates through rows of a table, running a series of processes/tools on each row. Model screenshot Since there are 50+ rows in this initial table, it takes some time to iterate through each row and run the entire model.

As I am adding new elements on to the end, I would like to be able to test the model by running through only the first row, to see if the elements I've added are functioning properly. Is there a way to tell the "Iterate Row Selection" tool I only want to run the model using the first row to test things out?

I know I can start the model and simply cancel it once the first iteration has completed, but I am wondering if there is a neater or proper way to do this. My apologies if this question has been asked before or has an obvious answer, I've tried my best to find an answer and haven't been successful.

asked Oct 18, 2016 at 18:34

2 Answers 2

4

Export one row of your table and use that in your model, or, instead of iterating over that original table, use a selection tool.

answered Oct 18, 2016 at 19:24
1
  • Ah, of course! I was imagining a built-in setting for the iterator that could do this, but excellent idea. I just put in a selection tool to find those with ID < 4 to try out the model on my first three rows. Commented Oct 18, 2016 at 19:50
4

Put a definition query on the table where ObjectID < 1, then with the table open, run the model.

answered Oct 18, 2016 at 19:31

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.