InfoPath Forms Services is not turned on

While working on the InfoPath Forms Service DSC Resource for SharePoint DSC, I ran into an issue where I couldn’t get access to the InfoPath Forms Service configuration page in Central Administration (General Application Settings > Configure InfoPath Forms Services). Every time I would click that link, I would get presented with a SharePoint error page with the message InfoPath Forms Services is not turned on. (see screenshot below). This was happening for both SharePoint 2013 and 2016.

InfoPath Forms Services is not turned on.

Resolution

The issue was caused by me having set a name on the InfoPath Forms Service instance while playing around with PowerShell. In order to obtain a reference to the InfoPath Forms Service in SharePoint, you need to run the following PowerShell cmdlet:

Get-SPInfoPathFormsService

Get-SPInfoPathFormsService

The picture above shows what you should get by default with a clean SharePoint installation after you run the cmdlet. In my case, I had written the DSc resource so that it can also modify the name of the instance. Note how in the picture above, we can see that the name property is empty by default. After playing with the service instance, running the same cmdlet would give me the following result:

Invalid SharePoint InfoPath Forms Service

We can see from the picture above, that I had renamed my InfoPath Forms Service to have the name “My InfoPath Forms Service“, which is what was causing my issue. Luckily for me, I still had a variable reference to my service instance in the current PowerShell session (in my case, a variable named $is). Running the following PowerShell lines emptied back the Name property of the service instance, and the InfoPath Forms Service automatically went back online.

$is = Get-SPInfoPathFormsService
$is.Name = ""
$is.Update()

After running the above lines of code, I was able to go back in Central Administration and access my InfoPath Forms Service configuration page as normal.

InfoPath Forms Service in Central Administration

InfoPath is dead! Long live InfoPath!

Since the release of its 2013 version, Microsoft InfoPath was perseived has having an uncertain future. For those who don’t know, InfoPath is part of the Office suite and allows users to create both on-premises and web forms. Yesterday, the Microsoft Office team officially announced that they were stopping the development on the InfoPath line of product. The tool is scheduled to be replaced by a new product in the near future. Microsoft announced that people attending the SharePoint 2014 Conference will get a sneak peek of what is Microsoft’s vision for form technology. You can read the full announcement made by Microsoft at:griminfopath.jpg

http://blogs.office.com/2014/01/31/update-on-infopath-and-sharepoint-forms/​​​