try catch added for itemdetailsapiresouce