2004 BMW X3

Electrical problem
2004 BMW X3 6 cyl Four Wheel Drive Automatic 82000 miles

I opened my sun/moon roof after having my battery disconnected now when I try to close it(even manually) the back part won't close.I looked in the manual and it says to get the system reinitialized but if that was the case wouldn't the whole thing not work?
March 10, 2010.

To reinitialize the sunroof, turn the key on, push up(not forward or back, but up) and hold the sunroof button until the sunroof cycles through and ends in the close position. It takes up to a minute, be patient.

Dr. Hagerty
Mar 10, 2010.