Adjusted Exception for not indexed queries