Skip to content

Error with raw query from processing provider with some tags (field name already exists ) #554

Open

Description

@crocovert

What is the bug?

when I make some query (raw query from the processing algorithm) with processing provider, I have sometimes such messages and the algorithm stops. I've already had similar problems but with different OSM tag (fid for example). Il seems that if there are some OSM features with specific tags (fid, note:fr) that generates an error

Thanks in advance

-->

Include some logs here, in QGIS Logs panel, bottom right icon, the small bubbles, in the QuickOSM tab.

Erreur lors de l'exécution de Télécharger la donnée OSM à partir d'une requête brute : Impossible de créer la couche ogr:dbname='C:/Users/patrick.palmier/AppData/Local/Temp/processing_HkAoMS/4bc7a6645cf14d3b95d7455f63cf0e5f\FILE.gpkg' table="FILE_lines" (geom) : La création du champ note:fr (QString) a échoué (Erreur OGR : Cannot create field note:fr. A field with the same name already exists.)

Environment

  • QuickOSM version: 2.4.1
  • QGIS version: 3.44.6
  • OS: windows 11

Activity

  1. added
    bug
    on Jan 15, 2026
  2. crocovert commented on Oct 20, 2026

    @crocovert
    Author

    Here is an example of an Overpass QL which generates the error (here with the tag 'todo') in an algorithm

    area["ref:FR:SIREN"="245700372"]->.area;
    rel(pivot.area)->.rel;
    (\nnodehighway;\nnodehighway;\nwayhighway;\nwayhighway;\nrelhighway;\nrelhighway;
    );
    (._;>;);
    out;

    Building the query.
    Prepare the url.
    Résultats: {'OUTPUT_OQL_QUERY': 'area["ref:FR:SIREN"="245700372"]->.area;\nrel(pivot.area)->.rel;\n(\nnodehighway;\nnodehighway;\nwayhighway;\nwayhighway;\nrelhighway;\nrelhighway;\n);\n(._;>;);\nout;', 'OUTPUT_URL': 'https://lz4.overpass-api.de/api/interpreter?data=area[%22ref:FR:SIREN%22%3D%22245700372%22]-%3E.area;%0Arel(pivot.area)-%3E.rel;%0A(%0Anode[highway](area.area);%0Anode[highway](r.rel);%0Away[highway](area.area);%0Away[highway](r.rel);%0Arel[highway](area.area);%0Arel[highway](r.rel);%0A);%0A(._;%3E;);%0Aout;&info=QgisQuickOSMPlugin'}
    Downloading data and OSM file.
    Processing downloaded file.
    Checking the validity of the geometry of the layer points.
    Résultats: {'ERROR_COUNT': 0, 'ERROR_OUTPUT': 'Error_output_6fdee738_f23f_4c0a_9fc8_c5685be69c01', 'INVALID_COUNT': 0, 'INVALID_OUTPUT': 'Invalid_output_f3cd11d9_627f_411a_94ab_015465bdc6c0', 'VALID_COUNT': 3119, 'VALID_OUTPUT': 'Valid_output_29b230a8_f8d9_4ce9_9813_4b3e8f281f65'}
    Explode the other_tags field in layer points.
    Résultats: {'OUTPUT': 'Explos__c24c0a39_f1a7_46d8_bbee_188a342e4c56'}
    Erreur lors de l'exécution de Télécharger la donnée OSM à partir d'une requête brute : Impossible de créer la couche ogr:dbname='C:/Users/patrick.palmier/AppData/Local/Temp/processing_ddzGJc/b6e7fd383ed3457c9344e4eeda6fd8fd\FILE.gpkg' table="FILE_points" (geom) : La création du champ todo (QString) a échoué (Erreur OGR : Cannot create field todo. A field with the same name already exists.)
    L'exécution a échoué après 53.73 secondes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions