A police officer has been given an official warning after being found guilty of failing to investigate a case correctly.