Select to view content in your preferred language

MODEL BUILDER: CREATING NEW FOLDER IN MODEL PREVENTS REST OF MODEL FROM RUNNING

6028
4
09-23-2013 10:25 AM
EricPiza
Deactivated User
Hello everyone,

I want to create a model in which 1) a new folder is created on the C drive and 2) various new layers are created and saved into this folder. When I create the model and run it in the edit window (via "validate entire model" and then "run") everything works fine. However, when I attempt to the run the model directly from Arctoolbox (by double clicking the model name) the model doesn't run. I get an error message stating that the new folder doesn't exist...thus there is no where to save the layers to.

Is there a way around this? Specifically, can I force the model to run even though the folders are not present at the outset (since the first thing the model does is create these necessary folders)?

Thank you,
0 Kudos
4 Replies
AkosKisreti1
Frequent Contributor
Hi,

Could you share your model or specify what it is doing?

I tried but I was not able to reproduce your problem.

Akos
0 Kudos
EricPiza
Deactivated User
Hello Akos,

I have attached the model as well as the shapefile it refrences.

Thank for your help!
0 Kudos
AkosKisreti1
Frequent Contributor
Hi Eric,

I have made one modification to your model and it is worked for me:

At the end of your model you added the output folder again, which doesn't exist when the Model runs. But if you use the output of the Create Folder tool (RTMDX_POLYTOPOINTS_IN) as an input for Create Random Points tool, it is working.

I attached the model.

I hope you get the results you wanted.

Best,

Akos
0 Kudos
EricPiza
Deactivated User
Hello Akos,

That worked for me...thanks for your help!
0 Kudos