Just had this happen to me.
Using the comfort access on the door handle to close the windows/sunroof tilt, and the sunroof stayed open. I looked inside and had this on the screen:
Held the button for 15 seconds but wasnt working, I tried with the full ignition switched on and I think it was the pushing up and it seemed to reset, and check system says everything ok now.
Saved me a trip to the dealer, thanks!