Your dog will have smaller stools with less frequency. Sudden diet changes can cause an upset stomach, and this may cause your dog to start pooping everywhere. There are some dogs that do not do well when they are away from their humans and this separation anxiety could be the cause of the sudden pooping indoors.