Another cause of yellow vomiting is pancreatitis. Sometimes, when a dog eats too many oily or fatty foods, the pancreas can become inflamed. If this is the case, yellow vomiting will typically occur between one and five days after the unsavory food was consumed.