This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Getting error when importing data using Nominatim : index_placex: UPDATE failed: ERROR: upper bound of FOR loop cannot be null

0

I am trying to install a OSM server using Nominatim but I am getting an error like this.

index_placex: UPDATE failed: ERROR: upper bound of FOR loop cannot be null

CONTEXT: PL/pgSQL function "get_osm_rel_members" line 6 at FOR with integer loop variable

PL/pgSQL function "placex_update" line 302 at FOR over SELECT rows

Does anyone has an idea what it means ?

Thanks.

asked 12 May '12, 06:52

reeuv's gravatar image

reeuv
11113
accept rate: 0%

edited 12 May '12, 06:55


One Answer:

0

Nominatim could not find the members for a relation in the planet_osm_rels table.

This happens most likely because you use an outdated version of osm2pgsql. Get the latest version of osm2pgsql from subversion, recompile it and then redo the complete Nominatim database import.

answered 12 May '12, 18:37

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

Source code available on GitHub .