Quite often there is no reason for a dog to do this.
Here is a thread that I created that now has tons of information that can help you. I'm still working on this issue with Max, but after many months we are finally starting to get somewhere!
http://www.yorkietalk.com/forums/yor...-his-poop.html