Description
The number of bands in the specified raster or Esri Grid stack must be more than 0 (an empty raster or stack) and not more than 30.
Solution
Make sure the raster or Esri Grid stack you want to use has at least one raster and that there are not more than 30 bands in the stack.