CSOM | Download File | 400 Bad Request | Virus Infected File RRS feed

  • Question

  • When I try to download a file from OneDrive For Business account using CSOM, it throws 400 Bad request. On inspecting the file it seems to be a virus infected file. 400 Error code is more generic and I'm not able to find the specific reason for failure in this case. Is there any way to identify this scenario using CSOM?
    Thursday, July 16, 2020 7:27 AM

All replies

  • Hi Praveen,

    SharePoint CSOM download file currently didn't provide detailed description to the error code.

    In this case, 400 Error code will cause by multiple reason such as parameter data is valid, Virus Infected File which should be banned by Windows Defender.

    This is the limitation, I suggest you can submit UserVoice about this requirement in the site below, so that it will report to Microsoft:



    Best Regards

    "SharePoint" forums will be migrating to a new home on Microsoft Q&A !
    We invite you to post new questions in the "SharePoint" forums' new home on Microsoft Q&A !

    Friday, July 17, 2020 6:27 AM