'Tried to search marked block but is invalid' error

Question:

When I search for text using the find dialog in the IDE, I receive the error 'Tried to search marked block but is invalid'. How can I get around this?

Answer:

You have the Search Selected Text option turned on, but do not have a text block selected. In the find dialog, select "Global", instead of "Selected text" in the "Scope" setting.