A barium X-ray is often recommended when a patient presents with symptoms such as difficulty swallowing, unexplained weight loss, abdominal pain, or blood in stool. These symptoms can be indicative of various conditions, including esophageal cancer, stomach cancer, and colorectal cancer. The test helps in determining the cause of these symptoms and in planning further diagnostic or therapeutic procedures.