There is a problem with the limit switch for the sun roof unfortunately there is no easy fix with out testing the switches to see which one is not working. Here is guide to help you do the testing,
Here is the wiring diagram for the sun roof to help us see whats going on. Can you take a quick video of what the roof is doing and upload it here to the site so I can confirm the issue?
Check out the diagrams (Below)
Please let us know what happens.
Wednesday, January 17th, 2018 AT 10:23 AM