The full text of the letter follows:
'Thank you for your letter of 20 May about the problems experienced at the Scottish Parliament and local government election counts in Edinburgh on 6 and 7 May.
I am, of course, aware of these problems and also that the council have been conducting their own internal inquiry into what happened. I understand that the council is considering an interim report.
My officials are aware of the detailed contents of the internal inquiry report, including the various practical recommendations that are being put into effect to ensure that the European election count in June runs smoothly. I am sure you appreciate that the returning officer's role will be to conduct the count for the 6 Parliamentary constituencies for which he is responsible, and as regional returning officer for Scotland, to declare the return of the 8 Scottish MEPs. It is not, of course, the case that votes from the whole of Scotland will be counted in Edinburgh.'