Skip to content

unable to upload csv file having columname starting with integer  #22

Description

@mwallschlaeger

when trying to upload a csv file that has a columnname starting with an integer will lead to the following error while uploading:
snipped from the executionrequest object

'output_params': {'errors': ["Task: importer.publish_resource raised an error during actions for layer: import: Unable to find source field 'Plot'.. Request: 627ffbef-fa5d-41b9-87e2-ea55b48fa003", "Task: importer.publish_resource raised an error during actions for layer: import: Unable to find source field 'Plot'.. Request: 627ffbef-fa5d-41b9-87e2-ea55b48fa003"], 'failed_layers': ['import']}, 'step': 'importer.create_geonode_resource', 'log': "Unable to find source field 'Plot'.. Request: 627ffbef-fa5d-41b9-87e2-ea55b48fa003", 'name': 'datapackage.zip', 'action': 'import', 'source': 'upload', 'user': 1000, 'geonode_resource': None}

you can reproduce this error by uploading the provided datapackage.zip via or using the webUI:

 geonodectl ds upload -f datapackage.zip

datapackage.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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