The connection to your layer's data source uses operating system (OS) authentication and you are attempting to publish to service with Feature Access (feature service) enabled.
Solution
- If you are working with a query layer, follow these steps.
- Right-click the query layer in the table of contents and click Properties.
- Click the Source tab.
- Click Change Query.
- Click Connections.
- Click the connection and click Edit.
- Navigate to the database connection you just updated and double-click it.
- Click the Authentication drop-down arrow and click Database Authentication.
- Click OK.
- Repeat for each query layer in the data frame.
- If you are working with a feature layer, follow these steps.
- Open ArcCatalog or the Catalog window in ArcMap.
- Right-click the database connection and click Connection Properties.
- Click Database Authentication and enter a user name and password. See the database administrator if you do not know the appropriate user name and password.
- Click OK.
- Right-click the layer in the table of contents and click Properties.
- Click the Source tab.
- Click Set Data Source.
- Navigate to the database connection you just updated and double-click it.
- Double-click the dataset for the layer.
- Click OK.
- Repeat for each layer in the data frame.
More information
OS authentication indicates a user logs in to the computer, and the credentials for authorization are supplied to the database by the operating system of the user's computer.
Database authentication indicates a user logs in to the server, then must separately log in to the database using database user names and passwords, which the database administrator must create.