Custom sharepoint timer job is not working correctly
I have a custom sharepoint timer job which does following things : 1. Modify the properties of the documents in a document library. 2. Download documents from a web client to that document library. This document library is 1. using some custom content types 2. having require check out option true 3. create major versions true This job is working fine in 1. Test Instance : 1 DB Server, 1 Other Server working as web front end and management server. 2. Development Instance : 1 DB Server, 3 web front ends, 1 management server. But not working in following scenario : 1. Production instance : 1 web front end, 1 management server, 1 DB server The job is throwing following exceptions: 1. while modifying properties of already exiting documents : Event Type: Error Event Source: Microsoft.SharePoint Event Category: None Event ID: 0 Date: 2/12/2010 Time: 9:00:07 PM User: N/A Computer: MGMTSERVERNAME Description: The URL '../../../docName.pdf' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. at Microsoft.SharePoint.Library.SPRequest.CheckInFile(String bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId) at Microsoft.SharePoint.SPFile.CheckIn(String comment, SPCheckinType checkInType, Boolean bIsMigrate, SPUser modifiedBy) at Microsoft.SharePoint.SPFile.CheckIn(String comment, SPCheckinType checkInType) 2. while downloading documents to the document library : Event Type: Error Event Source: Microsoft.SharePoint Event Category: None Event ID: 0 Date: 2/12/2010 Time: 9:00:07 PM User: N/A Computer: MGMTSERVERNAME Description: The description for Event ID ( 0 ) in Source ( Microsoft.SharePoint ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Unknown server error number: d at Microsoft.SharePoint.Library.SPRequest.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage) at Microsoft.SharePoint.SPFileCollection.AddInternal(String urlOfFile, Object file, PutFileOpt fileOpt, String createdBy, String modifiedBy, Int32 createdByID, Int32 modifiedByID, DateTime timeCreated, DateTime timeLastModified, Object varProperties, String checkInComment, SPVirusCheckStatus& virusCheckStatus, String& virusCheckMessage) at Microsoft.SharePoint.SPFileCollection.Add(String urlOfFile, Byte[] file, Boolean overwrite, String checkInComment, Boolean checkRequiredFields, SPVirusCheckStatus& virusCheckStatus, String& virusCheckMessage) at Microsoft.SharePoint.SPFileCollection.Add(String urlOfFile, Byte[] file, Boolean overwrite, String checkInComment, Boolean checkRequiredFields) at Microsoft.SharePoint.SPFileCollection.Add(String urlOfFile, Byte[] file, Boolean overwrite) at SyncTimerJob.<>c__DisplayClass1.<DownloadAttachments>b__0(). Can someone please help ? Thanks, Manas
February 23rd, 2010 10:28am

Hi Manas, From your post, the customer SharePoint timer job works well on your test environment. But it encounters error on your development instance. What is the difference between your Test and Development instances? For example, third party software. Do they (Test and Development SharePoint farms)have the same version? If not, try to keep them on the same version, then check the effect. If you had installed some third party software on your Development instance, try to remove them, then check the effect. Try to modify the properties of the documents in a document library manually, what is the result? If the steps above can’t resolve your issue, please enable timer job diagnostic logging, then reproduce the error, post the error information into forum for further analyze. For more information about how to configure ULS logging, please refer to the following article: Setlogginglevel: Stsadm operation (Office SharePoint Server) http://technet.microsoft.com/en-us/library/cc261740.aspx For more information about creating customer timer jobs and debugging them, please refer to the following articles: Creating Custom Timer Jobs in Windows SharePoint Services 3.0 http://msdn.microsoft.com/en-us/library/cc406686.aspx Creating, Deploying, and Debugging Custom Timer Jobs in Windows SharePoint Services 3.0 http://msdn.microsoft.com/en-us/library/cc427068.aspx How to create a custom timer job in SharePoint 2007 (MOSS) http://blogs.msdn.com/jingmeili/archive/2007/06/06/how-to-create-a-custom-timer-job-in-sharepoint-2007-moss.aspx Hope this helps. Rock Wang Rock Wang MSFT
Free Windows Admin Tool Kit Click here and download it now
February 24th, 2010 10:37am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics