LookUp Error : how to check the error "Operation returned no results"

Hi All,


I got the followinf error :


"Operation returned no results.

Label: Lookup mht_marketsegment, Name: mht_marketsegmentLookup: Error in calling Operation Query (Lookup Block) "


It's clear that my lookup doesn't get any records.


I tried to use in an IF block with the condition :


mht_marketsegmentLookup.Result.RecordsMatched equals 1


But I am still getting the same error.


In which way can I check if a Lookup has some results or not ?


Please, it is pretty urgent.



















(1) Answer