Gastroparesis is a condition that affects the muscles of the stomach, preventing proper stomach emptying. It can cause indigestion, pain, bloating, heartburn and blood sugar fluctuations. Nearly 1 in 3 people who have diabetes develop gastroparesis, but it can also arise following surgery, the use of certain medications or in association with another illness.