I am using Sharepoint 2013 and I am getting the below mentioned error on a daily basis :
The Execute method of job definition Microsoft.SharePoint.
Collection was modified; enumeration operation may not execute.
I even checked the log file and found the following entry regarding this job :
Updating SPPersistedObject SPProductVersionJobDefinition Name=job-admin-product-version. Version: 1110851 Ensure: False, HashCode: 41174044, Id: 1b200a4b-acf4-45ea-8312-6533695b9e8b, Stack: at Microsoft.SharePoint.Administration.SPJobDefinition.Update() at Microsoft.SharePoint.Administration.SPJobDefinition.RunNow() at Microsoft.SharePoint.ApplicationPages.JobEditPage.BtnRunNow_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at Sys...74e2269c-870e-30da-a914-53493f932f6b06/19/2013 03:28:24.95*w3wp.exe (0x2360) 0x23C0 SharePoint Foundation Topology 8xqzMedium ...tem.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr r...74e2269c-870e-30da-a914-53493f932f6b
06/19/2013 03:28:24.95*w3wp.exe (0x2360) 0x23C0 SharePoint Foundation Topology 8xqzMedium ...ootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) 74e2269c-870e-30da-a914-53493f932f6b
06/19/2013 03:28:24.98 w3wp.exe (0x2360) 0x23C0 SharePoint Foundation Monitoring b4lyMedium Leaving Monitored Scope (Request (POST:http://tst-ps2013-svr:2013/_admin/JobEdit.aspx?JobId=1b200a4b%2Dacf4%2D45ea%2D8312%2D6533695b9e8b&Source=%2F%5Fadmin%2FTimerJobHistory%2Easpx)). Execution Time=55.915346782901274e2269c-870e-30da-a914-53493f932f6b
06/19/2013 03:28:24.99 w3wp.exe (0x2360) 0x23DC SharePoint Foundation Monitoring nasqMedium Entering monitored scope (Request (GET:http://tst-ps2013-svr:2013/_admin/TimerJobHistory.aspx)). Parent No
06/19/2013 03:28:24.99 w3wp.exe (0x2360) 0x23DC SharePoint Foundation Logging Correlation Data xmnvMedium Name=Request (GET:http://tst-ps2013-svr:2013/_admin/TimerJobHistory.aspx)74e2269c-6712-30da-a914-53f613e8758a
06/19/2013 03:28:24.99 w3wp.exe (0x2360) 0x23DC SharePoint Foundation Authentication Authorization agb9sMedium Non-OAuth request. IsAuthenticated=True, UserIdentityName=, ClaimsCount=074e2269c-6712-30da-a914-53f613e8758a
06/19/2013 03:28:24.99 w3wp.exe (0x2360) 0x23DC SharePoint Foundation Logging Correlation Data xmnvMedium Site=/74e2269c-6712-30da-a914-53f613e8758a
If anyone could suggest something in this regard this it will be very helpful.
Thanks.