It was caused by the collapse of a dam called the South Fork Dam , 14 m upstream , after several days of heavy rain . It was the result of the catastrophic failure of the South Fork Dam situated 14 m upstream of the town of Johnstown , Pennsylvania , USA , made worse by several days of extremely heavy rainfall .