Skip to content

One CSV resource ID does not work #6

Description

@thom4parisot

When inspecting https://www.data.gouv.fr/fr/datasets/annuaire-de-leducation/, I manage to make it work with "Export au format CSV" (b22f04bf-64a8-495d-b8bb-d84dbc4c7983) but not with "Annuaire au 12 septembre 2019" (85aefd85-3025-400f-90ff-ccfd17ca588e).

Dans la console je vois

{
  "columns_ml": {
    "Fax": "tel_fr",
    "Fiche_onisep": "url",
    "Identifiant_de_l_etablissement": "uai",
    "Lycee_Agricole": "booleen",
    "Restauration": "booleen",
    "Section_europeenne": "booleen",
    "Section_internationale": "booleen",
    "Voie_professionnelle": "booleen",
    "Voie_technologique": "booleen",
    "date_maj_ligne": "date",
    "latitude": "latitude_wgs",
    "position": "latlon_wgs",
    "rpi_concentre": "booleen"
  },
  "columns_rb": {
    "Adresse_1": "adresse",
    "Apprentissage": "booleen",
    "Code postal": "code_postal",
    "Ecole_elementaire": "booleen",
    "Ecole_maternelle": "booleen",
    "Fax": "tel_fr",
    "Fiche_onisep": "url",
    "GRETA": "booleen",
    "Hebergement": "booleen",
    "Identifiant_de_l_etablissement": "uai",
    "Libelle_departement": "departement",
    "Lycee_Agricole": "booleen",
    "Lycee_des_metiers": "booleen",
    "Lycee_militaire": "booleen",
    "Mail": "email",
    "Nom_commune": "commune",
    "Post_BAC": "booleen",
    "Restauration": "booleen",
    "Section_arts": "booleen",
    "Section_cinema": "booleen",
    "Section_europeenne": "booleen",
    "Section_internationale": "booleen",
    "Section_sport": "booleen",
    "Section_theatre": "booleen",
    "Segpa": "booleen",
    "ULIS": "booleen",
    "Voie_generale": "booleen",
    "Voie_professionnelle": "booleen",
    "Voie_technologique": "booleen",
    "Web": "url",
    "date_maj_ligne": "date",
    "date_ouverture": "date",
    "etablissement_multi_lignes": "booleen",
    "latitude": "latitude_wgs",
    "longitude": "latitude_wgs",
    "position": "latlon_wgs",
    "precision_localisation": "adresse",
    "rpi_concentre": "booleen"
  },
  "metadata": {
    "encoding": "UTF-8",
    "header": [
      "Identifiant_de_l_etablissement",
      "Nom_etablissement",
      "Type_etablissement",
      "Statut_public_prive",
      "Adresse_1",
      "Adresse_2",
      "Adresse_3",
      "Code postal",
      "Code_commune",
      "Nom_commune",
      "Code_departement",
      "Code_academie",
      "Code_region",
      "Ecole_maternelle",
      "Ecole_elementaire",
      "Voie_generale",
      "Voie_technologique",
      "Voie_professionnelle",
      "Telephone",
      "Fax",
      "Web",
      "Mail",
      "Restauration",
      "Hebergement",
      "ULIS",
      "Apprentissage",
      "Segpa",
      "Section_arts",
      "Section_cinema",
      "Section_theatre",
      "Section_sport",
      "Section_internationale",
      "Section_europeenne",
      "Lycee_Agricole",
      "Lycee_militaire",
      "Lycee_des_metiers",
      "Post_BAC",
      "Appartenance_Education_Prioritaire",
      "GRETA",
      "SIREN_SIRET",
      "Nombre_d_eleves",
      "Fiche_onisep",
      "position",
      "Type_contrat_prive",
      "Libelle_departement",
      "Libelle_academie",
      "Libelle_region",
      "coordonnee_X",
      "coordonnee_Y",
      "epsg",
      "nom_circonscription",
      "latitude",
      "longitude",
      "precision_localisation",
      "date_ouverture",
      "date_maj_ligne",
      "etat",
      "ministere_tutelle",
      "etablissement_multi_lignes",
      "rpi_concentre",
      "rpi_disperse",
      "code_nature",
      "libelle_nature"
    ],
    "header_row_idx": 0,
    "heading_columns": 0,
    "ints_as_floats": [],
    "separator": ";",
    "total_lines": 65182,
    "trailing_columns": 0
  },
  "reference_matched_datasets": {
    "matched_datasets": {
      "0": [
        "code_postal",
        "adresse",
        "commune"
      ]
    },
    "reference_datasets": {
      "0": {
        "acronym": "BAN",
        "name": "Base Adresse Nationale",
        "url": "https://www.data.gouv.fr/en/datasets/base-adresse-nationale/"
      },
      "1": {
        "acronym": "RNA",
        "name": "Répertoire National des Associations",
        "url": "https://www.data.gouv.fr/en/datasets/repertoire-national-des-associations/"
      },
      "2": {
        "acronym": "SUB",
        "name": "Subventions",
        "url": "https://www.data.gouv.fr/en/search/?q=subventions"
      }
    }
  }
}

Et ensuite je vois l'erreur :

TypeError: "can't convert undefined to object"
    value App.js:292
    value App.js:291
    React 7
    unstable_runWithPriority scheduler.production.min.js:338
    React 6
    handlePredictClick App.js:160
react-dom.production.min.js:4260:12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions