Monday, December 30, 2013

InfoPath Forms Services forms cannot be filled out in a Web browser because no State Service connection is configured

Problem

You find the following entry in the SharePoint 2010 Central Administration Review problems and solutions All Reports listing:

TitleInfoPath Forms Services forms cannot be filled out in a Web browser because no State Service connection is configured.
Severity2 - Warning
CategoryConfiguration
ExplanationInfoPath Forms Services is not functional on the following Web applications because there is no service connection configured for the State Service: [servicename]
RemedyIf a State Service application doesn't exist, create one by using the new-SPStateServiceApplication Powershell commandlet. For more information on configuring the State Service, see Help. For more information about this rule, see "http://go.microsoft.com/fwlink/?LinkID=142645".
Failing Servers[servername]
Failing ServicesSPTimerService (SPTimerV4)
Rule SettingsView
 
Solution

Create the State Service application and proxy using the following PowerShell script:
$mysa = New-SPStateServiceApplication -Name "State Service" New-SPStateServiceDatabase -Name "DB_StateService" –ServiceApplication $mysa New-SPStateServiceApplicationProxy -Name "State Service Proxy" -ServiceApplication $mysa –DefaultProxyGroup

Summary

This posting has presented a PowerShell method for resolving the SharePoint 2010 Health Analyzer warning.  Using the PowerShell method avoids creating a database having a long name that includes a GUID string.  For additional detail on the topics discussed in this posting, see the references below.

References

No comments: