Shadow Force causes the user to "vanish instantly" on the turn it is selected, rendering it semi-invulnerable, and then reappear the next turn to cause damage. The only circumstances in which it will not hit the target are if the target has used a move such as Dive or Fly, or if the target is Template:Type2. It will hit even if the foe has used Protect or Detect on the second turn.
If Yawn is used the turn before Shadow Force is used, it will be aborted before it hits, as the user will fall asleep. This will not work if the user's ability is Insomnia (possible if Worry Seed has been used) or if Uproar is in effect.