try to re-initialize it yourself(save your time before you go to the dealer) hold the sun-roof button in the tilt position for like 20 seconds, keep on pressing the button as the sun roof will go through all the end stops(tilt fully open and closed) then stop. release the button. test the function of the sun-roof. if it still doesnt work then bring it in.
BMW Certified Diag Tech.