Model builder: Avoiding having output error why applying “make feature layer” tool in model,
As per the screenshot below, each time I run the model by opening it, I got an output error for the “make feature layer” tool. How come the ArcMap says that the layer is already exist while the output of the “make feature layer” tool is supposed to be on the fly?
Is there a way to avoid such error and thus not asked to change the name of the output to have the model run successfully?
Thank you
Best
Jamal
Solved! Go to Solution.
overwrite outputs ?? what are your environment settings globally? and exposed within the model parameters?
overwrite outputs ?? what are your environment settings globally? and exposed within the model parameters?
Thanks Dan.
I’m still having a warning despite the fact that I have checked the “overwrite the output…” option as shown in the screenshot below
How this warning might be eliminated?
that is just a warning, not an error, there is no modelbuilder tool to supress warnings
A question - is the goal to produce a feature class for use beyond just as another input to the existing model? If so, don't worry about naming the output here; instead add a Copy Features following the Make Feature Layer and name it there. What I'm thinking is that you are getting the error because the model creates it in temporary workspace whenever the model is run. So if the model was already run once, it already exists.
From the Make Feature Layer Help (ArcGIS Help (10.2, 10.2.1, and 10.2.2) )
Creates a feature layer from an input feature class or layer file. The layer that is created by the tool is temporary and will not persist after the session ends unless the layer is saved to disk or the map document is saved.
The temporary feature layer can be saved as a layer file using the Save To Layer File tool or can be saved as a new feature class using the Copy Features tool.
Chris Donohue, GISP
Also, it looks like the warning you are getting is expected behavior. Note - I added the underline to the tool help below:
The Overwrite the outputs of geoprocessing operations check box controls whether tools automatically overwrite any existing output when run. When it is checked, you receive a warning before tool execution that the output exists, but the tool executes and overwrites the output dataset. With this option off, existing outputs are not overwritten, and the tool displays an error, preventing you from executing the tool.
Source: ArcGIS Help (10.2, 10.2.1, and 10.2.2) - Using geoprocessing options to control tool execution
Chris Donohue, GISP
Chris, I think Jamal doesn't want the warning in the first place... which I can't find any where to supress this. So it is working as designed. Unless I have read him wrong
That was my read also, that the Warning was undesirable.
If anyone figures out how to suppress it, I'd be curious to hear it as I can see how it can cause confusion.
Chris Donohue, GISP
Thank you guys for the help.
Correct. I wanted here just to remove the warning icon to avoid confusion. From your valuable input, I got that this is by design
You might want to mark it answered, or assumed answered if none was the correct answer