error of template in Getting list of resources