Skip to content

fp importer seems to complain if plot already exists #47

@ashenkin

Description

@ashenkin

looking at the fp_importer class, this doesn't seem like it should be an issue. But, after I blew away the IVI-01 plot for Carl (see the sql in db/misc_sql), he's getting errors trying to upload again:

[14:51:59] [WARN] Skipping item which already exists on line 2 - No permission to override Plot from a different batch: {"id":196,"site_id":null,"plot_code":"IVI-01","plot_desc":"GEM Ivindo Plot 1","latitude":null,"longitude":null,"ne_latitude":null,"ne_longitude":null,"nw_latitude":null,"nw_longitude":null,"se_latitude":null,"se_longitude":null,"sw_latitude":null,"sw_longitude":null,"plot_shape":null,"plot_area_m2":null,"elevation_m":null,"slope_deg":null,"aspect_deg":null,"start_date_rainfor":null,"start_date_ccycle":null,"end_date_ccycle":null,"data_collected_code":null,"data_collection_list":null,"small_stem_plot_area":null,"cwd_transect_area_m2":null,"partitionning_collars_installation_date":null,"disturbances":null,"created_at":"2016-06-02T10:41:50.968Z","updated_at":"2016-06-02T10:41:50.972Z","fp_id":3405,"batch_id":271}
[14:51:59] [WARN] Skipping item which already exists on line 3 - No permission to override Plot from a different batch: {"id":196,"site_id":null,"plot_code":"IVI-01","plot_desc":"GEM Ivindo Plot 1","latitude":null,"longitude":null,"ne_latitude":null,"ne_longitude":null,"nw_latitude":null,"nw_longitude":null,"se_latitude":null,"se_longitude":null,"sw_latitude":null,"sw_longitude":null,"plot_shape":null,"plot_area_m2":null,"elevation_m":null,"slope_deg":null,"aspect_deg":null,"start_date_rainfor":null,"start_date_ccycle":null,"end_date_ccycle":null,"data_collected_code":null,"data_collection_list":null,"small_stem_plot_area":null,"cwd_transect_area_m2":null,"partitionning_collars_installation_date":null,"disturbances":null,"created_at":"2016-06-02T10:41:50.968Z","updated_at":"2016-06-02T10:41:50.972Z","fp_id":3405,"batch_id":271}
[14:51:59] [WARN] Skipping item which already exists on line 4 - No permission to override Plot from a different batch: {"id":196,"site_id":null,"plot_code":"IVI-01","plot_desc":"GEM Ivindo Plot 1","latitude":null,"longitude":null,"ne_latitude":null,"ne_longitude":null,"nw_latitude":null,"nw_longitude":null,"se_latitude":null,"se_longitude":null,"sw_latitude":null,"sw_longitude":null,"plot_shape":null,"plot_area_m2":null,"elevation_m":null,"slope_deg":null,"aspect_deg":null,"start_date_rainfor":null,"start_date_ccycle":null,"end_date_ccycle":null,"data_collected_code":null,"data_collection_list":null,"small_stem_plot_area":null,"cwd_transect_area_m2":null,"partitionning_collars_installation_date":null,"disturbances":null,"created_at":"2016-06-02T10:41:50.968Z","updated_at":"2016-06-02T10:41:50.972Z","fp_id":3405,"batch_id":271}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions