portal search error handling