locked
SharePoint GetListItems() returns error "There is an error in XML document (8, 3392)" for word document RRS feed

  • Question

  • HI All,

    I am getting the document list from the document library by calling the SharePoint service method called "GetListItems()".

    I am getting the following error in exception when calling the above method "There is an error in XML document (8, 3392)". 

    I am passing the Site name, document library name and folder name as a input.

    Actually the folder contains one word document. When I have removed the word document the. the service returns documents list from the given folder success. The word document is not corrupted. I have renamed and tried but still getting the same error. The other documents are not returning by the method because of this one document. I could not identify the reason. Please help me on it.

    Thanks & Regards

    Suresh Sankaran

    Friday, June 12, 2020 3:21 PM

All replies

  • I have one suggestion. You can use OpenXML to read the word document and check whether there is any error.

    Justin Liu Office Apps & Services MVP, MCSE
    Senior Software Engineer
    Learn Microsoft 365 from Microsoft DOCs now!
    Please Vote and Mark as Answer if it helps you.

    Monday, June 15, 2020 2:54 AM
  • Hi,

    Is there anything special about that document? Please share more information to help us reproduce this issue.

    Best Regards,

    Amos


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.


    Monday, June 15, 2020 7:58 AM
  • try to create new Word document with just "test" word there and upload it to this doclib. Remove problematic document from there and try to call same method again. If it will work - there is some problem with original  problematic document. In this case you may try to create new document, copy text from old document and upload this new document to doclib.

    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - https://github.com/sadomovalex/camlex

    Tuesday, July 7, 2020 4:04 PM