Endoscopic retrograde cholangiopancreatography should not hurt because the procedure is performed under sedation or anaesthetic.
As the tube is inserted into the mouth, it can cause the patient to gag. Air is also put into the stomach. This can cause burping, which may be a little uncomfortable.