Skip to content

Error adding a field subgroup with no data to a field group (ZD#25649) #185

@kspurgin

Description

@kspurgin

A client using CSV Importer reported getting this error.

Mapper did not return result for unexpected reason. Please send a copy of this report to [collectionspace@lyrasis.org](mailto:collectionspace@lyrasis.org). We will use the following info to diagnose and fix the problem, but you may ignore it: undefined method `<=' for nil:NilClass -- /usr/local/bundle/bundler/gems/collectionspace-mapper-dba3fc46d869/lib/collectionspace/mapper/data_mapper.rb:265:in `group_accommodates_subgroup?'

Client data in failing rows had:

value: nil,
measurementunit: nil

This resulted in an empty dimensionSubGroup hash being passed into DataMapper.map_subgroup as thisdata.

Kind of surprising this is the first time anybody has reported this problem!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions