Getting error while using getcontentobjectdetailsbyid.

Hi All,

I am using getcontentobjectdetailsbyid to get the content of a folder which is present in the KC . Strangely this method works fine in my code in Dev environment but when i am trying to use it in Test environment , it is throwing me an error i.e Expression evaluation error at function 'getcontentobjectdetailsbyid': String index out of range: -1. Please help me with this . 

  Discussion posts and replies are publicly visible