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.
Solution
- Register the layer with the geodatabase.
Learn more about registering a layer or table with the geodatabase
- Alternatively, you can remove the layer from the data frame.
More information
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.