I have a model that runs through a series of Rasters in a folder and extracts individual crops as layers cyclically.
The problem is that if the crop is not grown in a particular state, the model will die as the "extract by attribute" step is trying to operate on a null set.
Is there a way to test to see if the attribute exists in the raster before trying to extract it?
If it doesn't exist, how do I get the model to move on to the next raster rather than dying?
An image of the model Diagram: