If you are wondering why you cannot get into the Dotted Hole in Pokémon, the answer is that you need to use the move Cut to open it. The Dotted Hole is located on Six Island, and Cut is the key to getting inside.
Once you have a Pokémon that knows Cut and use it on the entrance, the barrier will open and you can enter. So if you have been stuck outside, make sure you have Cut available and give it a try on the Dotted Hole's entrance.