Cutting out 1199

Hi, I’ve just replaced the battery on my 1199, did about 20 miles, left it for 2 weeks then went to use it and the engine light was on and cuts out. Has anyone had an issue like this ? Any ideas would be great