Regarding Virus detection in SharePoint Online

Abhishake Dutta 1 Reputation point
2020-08-13T05:22:31.463+00:00

Hi Team,

Basically in our current business requirements we have a requirement to upload files to share point space and to wait for the status that is supposed to be delivered form sharepoint thorough ODATA Rest API call.But what we can see is that for some files it is coming good under "vti_x005f_virusstatus" field but in other case field is absent.We tried with similar type of file as well as with password protected zip file and all.

In document it says there are some criteria to be match before scanning engine scans for a particular file.So can you elaborate or confirm if we are missing some criteria or not??We tried with the file which are uploaded 1 day ago but still it's not giving us that field.

https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/virus-detection-in-spo?view=o365-worldwide

Below is the Rest API format we tried with:-

https://<Domain name>/_api/Web/Lists/GetByTitle('<Folder Name>')/Items?$filter=OData__dlc_DocId eq '<DocumentId>'&$select=File/Properties/vti_x005f_virusstatus&$expand=File/Properties

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. ZhengyuGuo 10,586 Reputation points Moderator
    2020-08-14T05:32:50.893+00:00

    Hi @Abhishake Dutta ,

    The property "vti_x005f_virusstatus" will be coming up after a file was scanned.

    Per my test, if I uploaded a zip file which is less than around 121MB, then it will work as expected as below, the "vti_x005f_virusstatus" is coming up:

    17528-snipaste-2020-08-14-13-30-51.png

    In summary, this issue should be realted to file size limiation for Virus scanning in SharePoint Online.


    If the response is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.