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.
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.