This content has been marked as final. Show 7 replies
"Select by Location" is working successful,
Oh, of course I meant "Select by Attributes".
Thanks for your detailled answer! :)
Yeah, input was a shapefile. SQL Expression seems to be alright. I will try out the version with using the sql expression directly in the "Make Feature Layer" tool and connecting the output with the next tool.
I can post a graphic of the extraction of the concerned part of my model tomorrow. Right now I can't check if SP2 is installed, will do that tomorrow.
Is "select layer by attributes" not intended to be applied on feature classes/ shapefiles?
Select LAYER by Attribute = Feature Layer as input
Alright! Good to know...I suspected something like that, but was unsure since the "Select by Attributes"-Tool itself gave no error message , but just the following tools (the "Results"- Window always showed that "select by attributes" succeeded).
Keep on getting an error message (Input must be a featue class) at the point that the Make Feature Layer Output is connected to "Eliminate" (see attachment).
The helpfile says, that Eliminate needs a Feature Layer with a selection as input. I put the sql expression in the Make Feature Layer tool
model_prob.png 60.2 K
Can you post an image showing the tools in the model that are upstream of the Eliminate tool?
Also try this:
Use Make Feature Layer tool to create a feature layer. Don't use any expression in this. Then use the Select Layer By Attribute tool to make a selection in the layer and connect the output of Select Layer By Attribute to the Eliminate tool. This should work.
The Eliminate tool works on a selected features from a feature class.
Make feature layer with an expression creates an output layer with only the features that honor the expression, whereas the Select Layer By Attribute tool creates a output layer with all the features in it but with features selected based on the query.
I have the same problem trying to build a model.
When I run step by step in the model, it runs well.
When I create parameter and run the model from ArcToolbox, it gave me the error: ERROR 000840
The value is not a Raster Layer. ERROR 000840: The value is not a Mosaic Layer.
I have checked all the setting, and there is anything that indicates the Feature Class has to be Raster.
Attached are the error message and parameter properties of my model.