{"id":162,"date":"2011-03-24T23:30:52","date_gmt":"2011-03-24T22:30:52","guid":{"rendered":"http:\/\/www.mysticslayer.com\/?p=162"},"modified":"2011-06-15T15:32:41","modified_gmt":"2011-06-15T14:32:41","slug":"sharepoint-timer-job-deploying-on-farm-with-wrong-spserver","status":"publish","type":"post","link":"http:\/\/www.mysticslayer.com\/?p=162","title":{"rendered":"SharePoint Timer Job deploying on Farm with wrong SPServer"},"content":{"rendered":"<p>It started all out with Reporting Services not running Workflows when Integrated, but yet I had still to do some workflow activities. So I thought of using a simple Timer Job that runs every hour or so to check if data has been changed. Well it worked out very well, but when deployed on a farm with multiple servers in it, I get a problem. It started to send e-mails&#8230; and not just one every time in the hour, but every content database it ran thru. (After I figured it out on the web by Robin of Sevenseas. <a href=\"http:\/\/community.zevenseas.com\/Blogs\/Robin\/Lists\/Posts\/Post.aspx?List=0ef532c7%2D89cb%2D4e57%2Db0ae%2Ddf0c5f5c4448&#038;ID=87&#038;Web=3d83ae3f%2D6f2f%2D4d3b%2D854f%2Dc2250e1f7cd1\">Link<\/a><\/p>\n<p>So I thought well allright, I should be using the SPJobLockType.Job with a Server specified. Well I did so. And as I did but with the wrong server name. Well it couldn&#8217;t be worse, it deployed the Timer Job successfully, and I started to debug. Didn&#8217;t notice the wrong server name though, but I set the server name into Title of the Timer Job, to check if the server is specified. Easy trick, easy done.<\/p>\n<p>But what I see is that it added a totally wrong server name. Yes a server name not from the farm, it wasn&#8217;t even there in the domain. But still no error messages, and the timer job still runs like a charm. Yes you can fool the OWSTimer with wrong SPServer specified&#8230; because it doesn&#8217;t validate it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It started all out with Reporting Services not running Workflows when Integrated, but yet I had still to do some workflow activities. So I thought of using a simple Timer Job that runs every hour or so to check if data has been changed. Well it worked out very well, but when deployed on a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[224],"tags":[302,301,52,356,223,300,303,299],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-sharepoint-2010","tag-fail","tag-job","tag-sharepoint","tag-sharepoint-2010","tag-sp2010","tag-spjoblocktype","tag-spserver","tag-timer-job"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pe1EH-2C","_links":{"self":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162"}],"version-history":[{"count":2,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":168,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions\/168"}],"wp:attachment":[{"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mysticslayer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}