@jay_s_uk thanks... the error message doesn't come anymore!
Can I also assign the position in the end code? The job currently ends in the rear left corner and the x and y axes are no longer referenced, here is the code:
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positioning
G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn off fan
M104 S0 ;Turn off hot end
M140 S0 ;Turn-off required
M84 X Y E0 ;Disable all steppers but Z