Most dogs should not get an upset stomach from swallowing doggie toothpaste or any other ingestible oral hygiene products for dogs. However, if they do, it may just be that the product is not suited to them if they have a sensitive stomach.  Always check the ingredients list on a product and if your dog has a sensitive stomach, don’t give them anything with rawhide in it, or anything containing rich flavorings.