Raise exception if min/max resource are not found