Thursday, September 28, 2017

Sitecore Upload File watcher unable to create Sitecore items for big amount of files.

Sitecore file watcher may not working in proper way for a big amount of files and that caused when the buffer of the .NET FileSystemWatcher class is full, it may fail to raise the Created event. 
These steps is to solve this issue in Sitecore Xp 7.2 Update-6 

  • Contact Sitecore support  for the fix "Sitecore.Support.322918"
  •  Add the settings 
 <add type="Sitecore.Support.UploadWatcher,Sitecore.Support.322918" name="SitecoreUploadWatcher"/> 
before each occurrence of <add type="Sitecore.Resources.Media.UploadWatcher, Sitecore.Kernel" name="SitecoreUploadWatcher"/> 
(see <system.webServer>/<modules> section and <system.web>/<httpModules> section)
  •  Comment out all lines 
<add type="Sitecore.Resources.Media.UploadWatcher, Sitecore.Kernel" name="SitecoreUploadWatcher"/>
  • Put the Sitecore.Support.322918.dll file into the /bin folder of your web site 
  • In the web.config file, add the following string under the <settings> section
<setting name="FileSystemWatcherBufferSize" value="4096000"/>
Such value seems to be enough for 5000 files with short names, but you can increase it further to be sure that even files with very long names will be uploaded.


For example:
If the full file path contains 100 symbols, it takes 200 bytes
32000 files will take 6400000 bytes (6250 kb), so the setting value should be:

 <setting name="FileSystemWatcherBufferSize" value="6400000 "/>

No comments:

Post a Comment

Sitecore : Rendering Exception Handling

To prevent showing yellow crash page if an error raised in one of Sitecore controls  and keep handle errors for developers without showing ...