geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
416 stars 487 forks source link

WFS harvesting: Error "<records> not found in response:" #6663

Open TommasoDb opened 1 year ago

TommasoDb commented 1 year ago

Describe the bug Trying to harvest a WFS source, the harvest process ends with error " not found in response:"

To Reproduce Steps to reproduce the behavior:

  1. Harvest a new WFS source
  2. Add URL and WFS query
  3. Save and start the harvesting
  4. See error in '...'

Expected behavior WFS records are imported correctly in Geonetwork

Screenshots Error: image

Settings: screenshot

Log file If applicable, add the server log file to help trace your problem.

Desktop (please complete the following information):

Additional context Maybe the root of the issue is that the field "Select template to combine with fragments" is empty, but none templates are listed there, so I cannot select a template.

fxprunayre commented 1 year ago

It depends a lot on what you expect in the end.

The OGC WFS feature harvester can be use to create metadata "fragments" See https://geonetwork-opensource.org/manuals/4.0.x/en/user-guide/harvesting/harvesting-wfs-features.html and indeed require quite some configuration on how to convert WFS features into useful fragments.

If you only want to display features on the map, check https://geonetwork-opensource.org/manuals/4.0.x/en/user-guide/analyzing/data.html

TommasoDb commented 1 year ago

But why does Geonetwork need the WFS features? I would expect that Geonetwork imports the service and his resources (layers), but not the single features - like it does with the WMS harvesting.

fxprunayre commented 1 year ago

In this case, harvest using https://geonetwork-opensource.org/manuals/4.0.x/en/user-guide/harvesting/harvesting-ogcwxs.html and not the WFS Feature harvester.