Does Model Builder has maximun number of tools we can use in it?

776
7
01-27-2020 12:34 PM
DiegoLlamas
Esri Contributor

Hello,

I am doing a model using ModelBuilder in ArcMap, it is a really big model and for some reason it get corrupted every time i get certain number of tools.

Regards,

Diego Llamas

0 Kudos
7 Replies
DanPatterson_Retired
MVP Emeritus

there are no listed limits that I can find.

So, some questions that might help

  • is it a particular tool?
  • have you done this with many different models and it breaks after a certain number of tools?
  • can the model be broken down into submodels?
AyokunleAdebisi1
New Contributor III

my model works perfectly and the script works well also..the only issue is not showing in my gdb and ofcourse not showing in the TOC.

0 Kudos
curtvprice
MVP Esteemed Contributor

Make sure OutputFC is not set to  intermediate.

Also: Why not create a small Python script that can import your toolbox with arcpy.ImportToolbox() and call your model tool from Python. 

0 Kudos
curtvprice
MVP Esteemed Contributor

You didn't say how big your model is or post a model, but my experience is that really large models get unstable. ModelBuilder has to validate the entire model when you open it, making sure are parameters are valid and datasets are there. If a model gets too large this process can bog down quite a bit.

I agree with Dan that you should break the model into pieces and have a driver model that calls each piece in turn. Smaller submodels much easier to edit, debug and run, and they will not "freeze" while you wait for dozens of tools and parameters to validate.

Creating smaller pieces also has has the added benefit that the pieces are much more re-usable than a big behemoth model. This is also true for Python scripting!

0 Kudos
AyokunleAdebisi1
New Contributor III

My model is not big and my model runs perfectly with results but for me to filter selections, made me to export to python and use tool validator to filter.

0 Kudos
DiegoLlamas
Esri Contributor

Hello,

We had over 150 tools in the model and in certain number of tools it just crashed and after that I was not able to edit the model, so I had to do dan's suggestion i broke it down into submodels and  after that it worked, I am creating a phyton script to avoid this. 

Thanks,

DLL

0 Kudos
DuncanHornby
MVP Notable Contributor

I would say once a model is exceeding a dozen or more tools I would be seriously thinking about porting it all over to python. A model with 150 tools has some serious logic to it that would be very difficult to maintain, much easier to do it in python.

Creating a workflow in modelbuilder is easy, quick and very convenient but I think people get trapped (including myself) in that scenario of having invested too much effort in it to abandon it for python.

My recommendation is that if you are working up some new cool workflow to do something fancy and you get to about 20 tools and you "can't see the light at the end of the tunnel" then stop! Move your existing logic into python code and then continue.

Well that's what my 16 years of using modelbuilder has taught me!