How to Create State Service Application in SharePoint 2013?

When tried using browser-based forms, InfoPath farm services gave me this error message:

“The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator.”

How to Create State Service Application in SharePoint 2013?

State service stores temporary state data between requests. When you use the SharePoint farm configuration wizard, it creates a State Service application automatically. State service can be created via PowerShell, as there is no provision in Central Admin. There are SharePoint features such as InfoPath Forms Services, Workflows are depended on state service.

Configure the State Service using PowerShell

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Create New State Service application
$StateServiceApp = New-SPStateServiceApplication -Name "State Service Application"  

#Create Database for State Service App
New-SPStateServiceDatabase -Name "SP13_State_Service" -ServiceApplication $StateServiceApp  

#Create Proxy for State Service
New-SPStateServiceApplicationProxy -Name "State Service" -ServiceApplication $StateServiceApp -DefaultProxyGroup  

Provision state service application SharePoint 2016
The above script works for SharePoint 2016 also to create new session state service application.

state service application sharepoint 2013 powershell

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

Leave a Reply

Your email address will not be published. Required fields are marked *