I got error when I tried to create a search service application from CA on SharePoint 2016.
Note :
1- The search database was created during the creation process.
2- The account I use it have full access to the database.
Errors were encountered during the configuration of the Search Service Application.
System.InvalidOperationException: Operation is not valid due to the current state of the object. at Microsoft.SharePoint.Administration.SPDatabase.Update()
at Microsoft.Office.Server.Search.Administration.SearchDatabase.BaseUpdate()
at Microsoft.Office.Server.Search.Administration.SearchDatabase.CreateCleanDatabase[T](String searchApplicationName, ISearchDatabaseParameters databaseParameters)
at Microsoft.Office.Server.Search.Administration.SearchServiceApplication.Create(String name, SearchQueryAndSiteSettingsService service, SPIisWebServiceApplicationPool applicationPool, SPIisWebServiceApplicationPool adminApplicationPool, ISearchDatabaseParameters adminDBParameters, ISearchDatabaseParameters searchSettingsDBParameters, IEnumerable`1 crawlStoreDBsParameters, IEnumerable`1 analyticsStoreDBsParameters, IEnumerable`1 linksStoreDBsParameters, SPPartitionOptions partitionOptions, Boolean cloudIndex)
at Microsoft.Office.Server.Search.Administration.SearchServiceApplication.Create(String name, SearchQueryAndSiteSettingsService service, SPIisWebServiceApplicationPool applicationPool, SPIisWebServiceApplicationPool adminApplicationPool, ISearchDatabaseParameters adminDBParameters, ISearchDatabaseParameters searchSettingsDBParameters, IEnumerable`1 crawlStoreDBsParameters, IEnumerable`1 analyticsStoreDBsParameters, IEnumerable`1 linksStoreDBsParameters, SPPartitionOptions partitionOptions, Boolean cloudIndex)
at Microsoft.Office.Server.Search.Administration.SearchService.CreateApplication(String name, ISearchDatabaseParameters adminDBParameters, ISearchDatabaseParameters searchSettingsDBParameters, IEnumerable`1 crawlStoreDBParameters, IEnumerable`1 analyticsReportingStoreDBParameters, IEnumerable`1 linksStoreDBParameters, SPIisWebServiceApplicationPool applicationPool, SPIisWebServiceApplicationPool adminApplicationPool, SPPartitionOptions partitionOptions, Boolean cloudIndex)
at Microsoft.Office.Server.Search.Administration.SearchService.CreateApplicationWithDefaultTopology(String name, Boolean cloudIndex, SPIisWebServiceApplicationPool applicationPool, SPIisWebServiceApplicationPool searchAdminApplicationPool)
at Microsoft.Office.Server.Search.Administration.SearchConfigWizard.CreateSearchApp() at Microsoft.Office.Server.Search.Administration.SearchConfigWizard.ProvisionSearchServiceApplication()
at Microsoft.Office.Server.Search.Administration.SearchConfigurationJobDefinition.ExecuteTimerJob()
Very appreciated for any solution.