A history of swallowing problems gives a clue to the diagnosis. Narrowing or blockage is diagnosed by x-rays taken after the person has swallowed a thick dye. This is called an upper GI series, or barium swallow. The reason for the narrowing can be found by endoscopy.