What is "the sample space"? Is it just an arbitrary sample space ? What do you mean an example for a mapping that is not a valid random variable? Valid in what sense?
From what I gather from your question, I assume you mean that is some set, and is the smallest -algebra containing . You are looking for a map such that there exists a set such that is measurable, is not in . Is that what you mean?