Two cars derailed along the CP rail near 42nd Avenue and Gateway Boulevard. (Rick Bremness/CBC)

Crews are working to repair a section of the CP railway track near 42nd Avenue and Gateway Boulevard after a train derailed this afternoon.

Two cars carrying four containers veered off the rails, making contact with a nearby building.

The derailment did not cause any major damage.