Here is my story for this electric trunk problem. Car is Combi version if it makes any difference. Symptoms were similar what others have described in this thread. Trunk lid opened only about 30 cm. Closing the lid from close button worked fine except the final latching did not happened. In addition luggage compartment lights did not came on when opening the trunk lid. Root cause was a faulty cable connection in the trunk lid wiring loom. Inside the wiring loom there is a soldered cable connection which was badly oxidized. In practise, cables were disconnected. If you have a multimeter it helps to check if you have the same problem. Remember to disconnect battery before measurements and possible soldering. There are few coupling connectors inside the lid on the left side. T5d (brown) is important in this case. There should be a connection between T5d pin 5 and latching motor connector T4c pin 1. Cable color at both ends brown/blue. Also, there should be a connection between trunk lid closing button connector T4aj pin 4 and T5d pin 5. Cable color at both ends brown/blue. You can also measure resistance between trunk lid closing button T4aj pin 4 and latching motor connector T4c pin1. Cable color at both ends brown/blue. Resistance measurement in all cases should be 0 ohms or close to that. If not, then cable connection inside the wiring loom is broken. Cable connection is few tens of centimeters from T5d connector. You'll find it when removing the tape around the wiring loom. Connection itself has also tape around it. Make a new clean connection and problem solved. Then about the closing motor fault codes. Probably broken cables inside the rubber tube. I checked cables on both sides. One cable already broken few cables where insulation broken. Difficult to fix.