Thanks Peter, it was a version problem. I was using v2.5 and after updating to v2.6 the getItemByValue method is working now.