@piyush-panse I expect the uploaded gcode has a command to home the axes, ie G28. I guess you are setting the router position with G92, but the homing command is overriding this, and calling home[axis/all].g, which is then (in its default form) not finding any endstops to home against, and generating the error.
EDIT: Ideally, remove any G28 homing command from the gcode. You should be able to do this in the software that is generating the gcode; there's usually a 'start gcode' (and 'end gcode') section that gets inserted into the generated gcode file.
You could change homeall.g (and the other homing macros) to pick up the current value of X, Y and Z and set it again.
Ian