'Process analytics log' Scheduled Task Failing

Donnie Hyatt asked on May 20, 2015 04:51

The default scheduled task configured for processing analytic log files is throwing an error every time it runs (scheduled for every minute of every day). The exception & Stack Trace is pasted below:

Message: Length cannot be less than zero.
Parameter name: length

Exception type: System.ArgumentOutOfRangeException
Stack Trace: 
 at System.String.Substring(Int32 startIndex, Int32 length)
 at CMS.WebAnalytics.HitLogProcessor.ProcessLog(String fileName, String codeName)
 at CMS.WebAnalytics.HitLogProcessor.ProcessFinishedLogs()
 at CMS.WebAnalytics.HitLogProcessor.Execute(TaskInfo task)

Message: Length cannot be less than zero.
Parameter name: length

Exception type: System.ArgumentOutOfRangeException
Stack Trace: 
 at System.String.Substring(Int32 startIndex, Int32 length)
 at CMS.WebAnalytics.HitLogProcessor.ProcessLog(String fileName, String codeName)
 at CMS.WebAnalytics.HitLogProcessor.ProcessFinishedLogs()
 at CMS.WebAnalytics.HitLogProcessor.Execute(TaskInfo task)

Amazon hosted, I suspect it has something to do with the file storage model, but interestingly my production environment...also on Amazon (dual server web farm)....task completes just fine. Both environments are configured identically, near as I can tell.

Version: 8.2.13

EDIT: Applying hotfix 20 did not change the results. New version is 8.2.20

I am looking forward to any suggestions, as I have exhausted all of my (not so) brilliant ideas.

Thanks in advance.

Recent Answers


David Komárek answered on June 10, 2015 08:42

Hi Donnie,

as discussed in the ticket, similar issues often appear if there are log files with incorrect names within the WebAnalytics folder (CMS\App_Data\CMSModules\WebAnalytics)

Removing the files with incorrect naming and restering the application should help.

Dave

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.