When attempting to publish a feature layer to ArcGIS for Server, the following error is displayed:
"Validation of service definition failed. :Invalid service definition. Cannot have "mixed" data stores with a feature or geocode service."
The following are possible causes for this error.
Follow the suggested options below to solve the issue.
If the map document is corrupt, recreate the MXD and republish it. To do so:
Note: The Analyze function can assist in determining if there are issues with the GIS resource before publishing. The following documentation describes the Analyze function in detail, ArcGIS for Server: Analyzing your GIS resource.
Check if the corresponding database is registered with ArcGIS for Server and feature access is enabled from the ArcGIS Server manager page.
The following documentation describes how to register a database with ArcGIS for Server: ArcGIS for Server: Register your data with ArcGIS Server using ArcGIS for Desktop, and how to enable Feature Access in ArcGIS for Server: ArcGIS for Server: Publishing feature services.
Note: Please check the server logs for more information about this generic error.