What Happens During an Endoscopy? Under the Knife: Occasional stomach aches can be normal, but if they are frequent or severe, your doctor may send you for an upper endoscopy.