Wednesday 11 May 2016

ERROR Error in FileWatcher. Internal buffer overflow

On one installation of Sitecore 8.1 update 2 that I recently did, I noticed lots of errors in the logs like:

5404 15:52:21 ERROR Error in FileWatcher. Internal buffer overflow.
Exception: System.IO.InternalBufferOverflowException
Message: Too many changes at once in directory: D:\inetpub\...\Website\.

As explained here: http://mikael.com/2016/01/sitecore-file-watcher-internal-buffer-overflow-exception/ 

The resolution oddly enough is to move the license file to a subfolder of the data directory.

Email Experience Manager 3.2.1 Rev. 160127 Issue with Sample Package

I recently had to install the Email Experience Manager (ECM) for a client on Sitecore 8.1 update 2, and came across an issue when following the steps to smoke test the installation:

https://doc.sitecore.net/email_experience_manager/configuring_the_delivery_process/performance/testing_exm_performance_in_emulation_mode

The steps although not explicitly saying install the supplied Sample Newsletter package do refer to the same.  So I went ahead and installed the Email Experience Manager Sample Newsletter 3.2.1 rev 160127.zip that is supplied as part of this ECM package.  

N.B. The sample package like the main ECM package is part of a collection of 7 zip files contained in the zip file that you download from  (you'll need a Sitecore Login) the Downloads -> Email Experience Manager Link found on this page: https://dev.sitecore.net/Downloads/Email_Experience_Manager/Email_Experience_Manager_32/Email_Experience_Manager_32_Update1.aspx

When clicking on the Sample Newsletter item I got the following error:

Requested value 'Drafts' was not found. 

The error appears in a popover dialogue that it launched when the item is selected.

I used Resharper's dotPeek and was able to see what was going on:


The error I am seeing is happening in the MessageItemSource class where its calls MessageStateToString - it looks like the sample item is passing in a MessageType of Drafts - which doesn’t exist!

Simple answer is don't install the package until Sitecore fix this issue, but instead go ahead and create your own Sample Newsletter.
 

Tuesday 10 May 2016

Sitecore WFFM Error on 8.1 update 2

On Sitecore 8.1 CD server after using the supplied SwitchMasterToWeb.config and having installed Web Forms For Marketers 8.1 rev 160304 - I get the following error when trying to access a form:

Unable to cast object of type 'System.String' to type 'Sitecore.Analytics.Reporting.ReportDataProvider'

The error occurs because Sitecore is trying to connect to the master Db and is getting a failure because it is not accessible. I suspect that SQL is returning a string error message instead of the expected object.

If you open up the SwitchMasterToWeb.config and comment out the following block it will resolve the issue:

<reporting>
  <dataprovider>
 <datasources>
   <add key="collection">
  <filtersfactory>
    <param desc="definitionDatabaseName" />web
  </filtersfactory>
   </add>
   <add key="reporting">
  <filtersfactory>
    <param desc="definitionDatabaseName" />web
  </filtersfactory>
   </add>
 </datasources>
  </dataprovider>
</reporting>