Error while parsing the document Array