Events
Microsoft 365 Community Conference
May 6, 2 PM - May 9, 12 AM
Skill up for the era of AI at the ultimate community-led Microsoft 365 event, May 6-8 in Las Vegas.
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
APPLIES TO: 2013
2016
2019
Subscription Edition
SharePoint in Microsoft 365
Rule Name: A State Service Application has no database defined
Summary: A State Service service application has no State Service database defined. This may result in errors when using some SharePoint components such as InfoPath Web browser forms and the Microsoft SharePoint Server Chart Web Part.
Cause: One or more of the following might be causing this:
The farm administrator deleted all databases associated with the State Service service application.
The farm administrator never created or associated a database with the State Service service application.
Resolution: Create a new database or use an existing database for the State Service service application by using Microsoft PowerShell
Verify that you have the following memberships:
securityadmin fixed server role on the SQL Server instance.
db_owner fixed database role on all databases that are to be updated.
Administrators group on the server on which you are running the PowerShell cmdlets.
An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint 2013 Products cmdlets.
Note
If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.
Start the SharePoint Management Shell.
For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows.
If no database already exists that you can use, type the following command at the PowerShell command prompt:
New-SPStateServiceDatabase -Name <DatabaseName> -DatabaseServer <ServerName> [-DatabaseCredentials <Credential>] [-ServiceApplication <ID>]
Where:
<DatabaseName> is name of the database as a String.
<ServerName> is name of the database server.
<Credential> is SQL Server authentication credentials for the database. If this parameter is not used, Windows authentication will be used.
<ID> is the identifier for the State Service service application as a string or a GUID. If there is only one State Service service application, you do not have to specify this parameter.
In some environments, you must connect to an existing, empty SQL database. In this case, type the following command at the Windows PowerShell command prompt:
Mount-SPStateServiceDatabase -Name <DatabaseName> -DatabaseServer <ServerName> [-DatabaseCredentials <Credential>] [-ServiceApplication <ID>]
Where:
<DatabaseNname> is name of the database as a String.
<ServerName> is name of the database server.
<Credential> is the SQL Server authentication credentials for the database. If this parameter is not used, Windows authentication will be used.
<ID> is the identifier for the State Service service application as a string or a GUID. If there is only one State Service service application, you do not have to specify this parameter.
For more information, see Mount-SPStateServiceDatabase or New-SPStateServiceDatabase.
Events
Microsoft 365 Community Conference
May 6, 2 PM - May 9, 12 AM
Skill up for the era of AI at the ultimate community-led Microsoft 365 event, May 6-8 in Las Vegas.
Learn moreTraining
Module
Provision an Azure SQL database to store application data - Training
Find out what makes Azure SQL Database a good choice for your relational database, how to create the database from the portal and connect with Azure Cloud Shell.
Certification
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
Documentation
Web part controls don't work after sites are migrated to SharePoint 2016 - SharePoint
Describes an issue that causes SharePoint 2013 web part controls to stop working once you've migrated to SharePoint 2016. Provides a resolution.
Restore Secure Store Service applications in SharePoint Server - SharePoint Server
Learn how to restore the Secure Store Service application in SharePoint Server.
Set SharePoint Deployment Commands - Visual Studio (Windows)
Understand how to customize the deployment process by setting SharePoint pre-deployment and post-deployment commands.
Learn how to add or remove service application connections to a service application connection group in SharePoint Server.