<ows:ExceptionReport version="2.0.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 https://api.mobidata-bw.de/geoserver/schemas/ows/1.1.0/owsAll.xsd">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>
java.lang.RuntimeExceptionCannot do natural order without a primary key, please add it or specify a manual sort over existing attributes
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
Reason is presumably that the (materialized) view geoserver.stations_with_served_routes which serves layers transit_stations_with_served_routes currently has no unique index.
The following request WFS2.0.0 fails
https://api.mobidata-bw.de/geoserver/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&SRSNAME=urn:ogc:def:crs:EPSG::4326&TYPENAME=MobiData-BW:transit_stations_with_served_routes&outputFormat=application/json&count=10&startIndex=5
Reason is presumably that the (materialized) view
geoserver.stations_with_served_routes
which serves layerstransit_stations_with_served_routes
currently has no unique index.