The invention relates to an infusion pump with an error-loading-preventing device. The infusion pump comprises a shell and a door a groove part is defined by the shell and used for receiving a sliding clamp the door is movably connected to the shell and can move between an opening position and a closing position. A locking pin is movably connected to the shell and configured to be connected with the sliding clamp of a feeding device. The locking pin can move between a locking position and an unlocking device at the locking position, the sliding clamp is connected into the groove part through the locking pin and at the unlocking position, the locking pin breaks away from the sliding clamp. The locking pin is moved to the locking position when the door is moved to the opening position, and the sliding clamp is fixed into the groove part and the locking pin is moved to the unlocking position when the door is moved to the closing position, and the sliding clamp is released from the groove part. The infusion pump further comprises a feeding device error loading sensor.