This a story from my initial training and hence a very long time ago.
It was an RAF Station with a lt cdr RN attached. There was a dining in night Friday and the station parade the following morning, it was a long time ago.
Parade supernumerary officers would March up and down at the side of the parade ground waiting to fall in and all other officers would assemble behind the flag pole.
As the stn cdr took post the RN officer could be seen marching to his office in full Mess Dress.
When duly summons he handed over his letter of apology.