Share via


InfoPath Forms Services not working due to invalid State Service configuration - Event 7898 (SharePoint Server 2010)

 

Applies to: SharePoint Server 2010

Alert Name:   State Service not configured for InfoPath Forms Service

Event ID:   7898

Summary:   InfoPath Forms Services is not functional because the Microsoft SharePoint Server State Service configuration is not valid.

Symptoms:   One or more of the following symptoms appears:

  • InfoPath forms cannot be opened in a Web browser.

  • Workflow forms cannot be opened in a Web browser.

  • An error message appears when a form is loaded that states that the form cannot be rendered.

  • This event appears in the event log: Event ID: 7898 Description: Microsoft SharePoint State Service is not configured correctly and cannot respond to requests. InfoPath Forms Services relies on Microsoft SharePoint State Service to function correctly. Check the SharePoint Maintenance Engine rules in SharePoint Central Administration for issues with Microsoft SharePoint State Service configuration.

Cause:   The State Service, an InfoPath Forms Services dependency, is not configured correctly or is not associated with the Web application that hosts InfoPath forms.

Resolution:   Create a State Service application by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin.

  2. On the Start menu, click All Programs.

  3. Click Microsoft SharePoint 2010 Products.

  4. Click SharePoint 2010 Management Shell.

  5. At the Windows PowerShell command prompt (PS C:\>), type the following command, and then press ENTER:

    $serviceApp = New-SPStateServiceApplication -Name "State Service"

    To create a State Service database and associate it with the service application, type the following command, and then press ENTER:

    New-SPStateServiceDatabase -Name "StateServiceDatabase" -ServiceApplication $serviceApp

    To create a State Service application proxy in the farm's default proxy group, and associate it with the service application, type the following command, and then press ENTER:

    New-SPStateServiceApplicationProxy -Name "State Service" -ServiceApplication $serviceApp -DefaultProxyGroup

For more information, see New-SPStateServiceApplication, New-SPStateServiceDatabase and New-SPStateServiceApplicationProxy.

Resolution:   Associate a State Service proxy with the Web application

  1. Verify that the user account that is performing this procedure is a member of the Farm Administrators group.

  2. On the Central Administration Home page, click Application Management.

  3. On the Application Management page, in the Service Applications section, click Manage Web Applications.

  4. On the Manage Web Applications page, click the name of the Web application, and then click Service Connections.

  5. Select the State Service Proxy check box.

    If a State Service Proxy is not listed, create a State Service application, a State Service database, and a State Service proxy.

Resolution:   Create a State Service application by using the Farm Configuration Wizard

  1. Verify that the user account that is performing this procedure is a member of the Farm Administrators group.

  2. On the Central Administration Home page, click Configuration Wizards.

  3. On the Configuration Wizards page, click Launch the Farm Configuration Wizard.

  4. Ensure that State Service check box is selected, and then finish the Farm Configuration Wizard.