{"id":7766,"date":"2015-02-17T17:12:50","date_gmt":"2015-02-17T17:12:50","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/get-wffarm-and-troubleshooting-register-spworklfowservice\/"},"modified":"2017-09-28T09:34:25","modified_gmt":"2017-09-28T09:34:25","slug":"get-wffarm-and-troubleshooting-register-spworklfowservice","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/get-wffarm-and-troubleshooting-register-spworklfowservice\/","title":{"rendered":"Get-WFFarm and Troubleshooting Register-SPWorklfowService"},"content":{"rendered":"<p>I was helping a colleague configure workflow on his SharePoint development environment when we ran into an issue running the Register-SPWorkflowService cmdlet:<\/p>\n<p><code>Register-SPWorkflowService : An internal error occured. For more details, please see the server logs. Client ActivityId : af6ae27e-02cc-4aed-914d-a59d21d23427. At line:1 char:1 + Register-SPWorkflowService -spsite https:\/\/siteUrl\/sites\/Site ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (Microsoft.Share...WorkflowService: RegisterSPWorkflowService) [Register-SPWorkflowService], InternalServerExc eption + FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell .RegisterSPWorkflowService <\/code><\/p>\n<p>Prudently following the instructions of the error message we reviewed the ULS logs and found this message coupled with another error message containing even less information about what was actually wrong.\u00a0 So we ran through a few troubleshooting steps that may be helpful if you are going through this same issue:<\/p>\n<p>1.) Use Get-WFFarm to figure out your WorkflowHostUri.\u00a0 When you run Get-WFFarm, it lists the URI of your workflow site along with the HTTP\/HTTPS ports and a myriad of other information, so it&#8217;s really helpful if you&#8217;ve forgotten those settings.<\/p>\n<p>2.) Make sure you can hit your workflow site in the browser.\u00a0 You should see an XML response if everything is working.\u00a0 If not you can try the next couple of things on the list.<\/p>\n<p>3.) Review your IIS bindings for conflicts.\u00a0 You need to make sure another web application isn&#8217;t catching the request.<\/p>\n<p>4.) Check your DNS.\u00a0 Make sure the URL you use resolves to an IP address that hits your IIS site.<\/p>\n<p>5.) Make sure that the protocol used in the URL matches your ports number for that protocol.\u00a0 One time I accidentally used the HTTP port with the HTTPS protocol and that does not work.<\/p>\n<p>6.) Change the Application Pool account.\u00a0 This is what resolved the issue for us this time around, but unfortunately I do not have exacting details on why or what permissions are required for an account to be valid.\u00a0 We ended up using a fairly high-powered\u00a0 administrative account (do NOT try in production) and the the issue went away.<\/p>\n<p>Hopefully that helps!\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was helping a colleague configure workflow on his SharePoint development environment when we ran into an issue running the Register-SPWorkflowService cmdlet: Register-SPWorkflowService : An internal error occured. For more details, please see the server logs. Client ActivityId : af6ae27e-02cc-4aed-914d-a59d21d23427. At line:1 char:1 + Register-SPWorkflowService -spsite https:\/\/siteUrl\/sites\/Site &#8230; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (Microsoft.Share&#8230;WorkflowService:&#8230;&hellip;<\/p>\n","protected":false},"author":46738,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[7575],"class_list":["post-7766","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/46738"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=7766"}],"version-history":[{"count":4,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7766\/revisions"}],"predecessor-version":[{"id":73435,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7766\/revisions\/73435"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=7766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=7766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=7766"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=7766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}