Homing Z axis failed

I had a problem on my X1 Carbon when I wanted to print any filament other than PLA and with a plate other than the cool plate. The error was Homing Z axis failed [0300 4000]. I found the solution on the Bambulab Wiki. In fact, you have to slightly advance the heated bed so that it does not touch the excess drop receptacle.
You can find the solution and procedure at this Bambulab Wiki page : Z Axis error