In May 2014, Andretti Autosport announced that Montagny would race for them in the inaugural season of the FIA Formula E Championship in 2014–15. He raced for the team in Beijing and Putrajaya, scoring a podium in Beijing and scoring 18 points overall in the two races. However, he was replaced in Punta del Este by Jean-Éric Vergne. It was not immediately known why, but Montagny later admitted that he tested positive for benzoylecgonine, a cocaine derivative after the Putrajaya ePrix. In March 2015, Montagny was given a two-year ban from racing, and was also disqualified from the Putrajaya race, in which he initially placed fifteenth.