I am getting the following error while deploying to production : System.UnexpectedException: Search unavailable when executing an sosl search whithin my test class at the line where im doing the following :

list<list<sObject>> searchList = search.query(searchquery);

My code where running well,prior to the winter 16 release on my prod. What is strange is that my sandboxes are all winter 16 versions, yet i'm not getting this error.

Does anyone know why ? And how can i resolve this ?


This may be link to this known issue: https://success.salesforce.com/issues_view?id=a1p30000000SyUnAAK. Check this out.

  • The fact is that, the reported issue, is not the exact replica of my case, as in mine, im not returning multiple object in my sosl : String searchquery = 'FIND \'' + String.escapeSingleQuotes(name) + '\' IN ' + option1 + ' FIELDS RETURNING ' + objName + '(' + fieldlist + ')'; system.debug('## seacch query :' + searchquery); list<list<sObject>> searchList = search.query(searchquery) – vanessen Oct 26 '15 at 6:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.