Your layer references a data source that is not registered with the geodatabase and you are publishing a map service with feature access or WFS capabilities.
- Register the layer with the geodatabase.
- Alternatively, you can remove the layer from the data frame.
You may receive this error for virtual layers such as x,y or route event layers. In this case, your only solution is to delete the virtual layer since you cannot register a virtual layer with the geodatabase.
All data in the map must be registered with the geodatabase if you are publishing a map service with feature service or WFS capabilities. Registering a table with the geodatabase adds records to the geodatabase system tables and allows you to use geodatabase functionality.
This is not the same as registering the data source with the server. Registering a data source with the server helps ensure that the server has access to all the data that the GIS service references. If a data source is not registered with the server, the data referenced by a layer in a map that you are publishing will be copied to the server. If you are publishing a map service with either feature access or transaction-enabled WFS (WFS-T) capabilities, data will be copied to the geodatabase registered on the ArcGIS server using the Server only connection type.