Raise exception if there any error in indexing