A Canadian Pacific Railway train hauling crude oil derailed west of Guernsey, Saskatchewan, causing a fire at around midnight local time, railway and police officials said on Monday.