Create a new ' state Service ' service application using PowershellFebruary,Leave a comment Go tocomments 2 votes
I encountered this issue and had some trouble finding the correct info on it, so I thought that I ' s share a good guide wit H all.
If you had made the correct choice to not run the Configuration Wizard to install all of the Service Applications...then yo U may encounter that is missing the state Service application. It can also is from deleting it after it is created by the wizard ...
This service application isn't available for creation in the New dialog on Central Administration, Manage Service Applica tion, so it requires some special treatment.
An example of what it can look if this service application are missing can look like this (in Health analyzer):
Title:infopath forms Services forms cannot be filled out in a Web browser because no State Service connection is Configu Red.
Severity:2–warning
Category:configuration
Explanation:infopath Forms Services isn't functional on the following WEB applications because there are no service conn Ection configured for the state service:sharepoint–80
Remedy:if a state Service application doesn ' t exist, create one by using the New-spstateserviceapplication Powershell Co Mmandlet. For more information on configuring the state Service, see Help. For more information on this rule, see "http://go.microsoft.com/fwlink/?LinkID=142645".
Failing servers:xxxxxxxx
Failing Services:sptimerservice (SPTIMERV4)
The obvious command new-spstateserviceapplication gives you this:
PS c:\media\configscript> new-spstateserviceapplication -name "state Service Application"-Database " Sharepoint_service _state "New-spstateserviceapplication:the pipeline has been stopped. At Line:1 char:30 + new-spstateserviceapplication <<<< -name ' state Service application '- Database "Sharepoint_service_state" + categoryinfo : Invaliddata: (microsoft.offic...plicationcmdlet: Newstateserviceapplicationcmdlet) [New-s pstateserviceapplication], pipelinestoppedexception + FullyQualifiedErrorId:Microsoft.Office.Server.Administration.NewStateServiceApplicationCmdlet
New-spstateserviceapplication:the specified object is not found. Parameter name:database at Line:1 char:30 + new-spstateserviceapplication <<<<-name "state Service Applica tion "-database" sharepoint_service_state "+ categoryinfo:invalidargument: (MICROSOFT.OFFIC...PLICATIONCM Dlet:newstateserviceapplicationcmdlet) [N ew-spstateserviceapplication], ArgumentException + FullyQualifiedErrorId : Microsoft.Office.Server.Administration.NewStateServiceApplicationCmdlet
Do don't let this put you down, the correct-to-create a new state Service application are a bit different, no thanks to T He get-help command...the Syntaxt to use is as follows:
1. $serviceApp = new-spstateserviceapplication-name "State Service Application"
2. New-spstateservicedatabase-name "Sharepoint_service_state"-serviceapplication $serviceApp
3. New-spstateserviceapplicationproxy-name "State Service application Proxy"-serviceapplication $serviceApp- Defaultproxygroup
Thats it!
If your SharePoint has a status service problem, InfoPath is not working correctly