CreateFile error: The file size exceeds the limit allowed and cannot be saved.
search cancel

CreateFile error: The file size exceeds the limit allowed and cannot be saved.

book

Article ID: 184539

calendar_today

Updated On:

Products

Data Loss Prevention Network Discover

Issue/Introduction

Customer is trying to Index a sharepoint UNC.

File: Enforce\logs\tomcat\localhost.xxx.log

Date: xxx

Thread: xxx

Level: WARNING

Source: com.vontu.directorycrawler.DiscoverNativeFile

Message: Native informations of file '\\unc\share\file' couldn't be retrieved: CreateFile error: The file size exceeds the limit allowed and cannot be saved

Environment

DLP 15.x

Cause

Local webclient copy from a Sharepoint defaults to a max of 50 MB.  Copy through a mapped drive in the OS causes the same result.

Resolution

On the Enforce server, update the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters

Increase the default decimal value of the DWORD FileSizeLimitInBytes from 50000000 (50 MB) to a larger size than any files being indexed on the UNC. 

For example, if the largest file is 300 MB, the decimal value of FileSizeLimitInBytes could be set to 500 MB (decimal value 500000000).

Important: After the value is update, the WebClient service must be restarted or the system rebooted.