Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unclear error: There is an object or list at 'amountAwarded' but it should be an number #353

Open
sentry-io bot opened this issue May 20, 2020 · 2 comments

Comments

@sentry-io
Copy link

sentry-io bot commented May 20, 2020

Sentry Issue: COVE-FD

ValueError: There is an object or list at 'amountAwarded' but it should be an number
(1 additional frame(s) were not displayed)
...
  File "libcove/lib/converters.py", line 127, in convert_spreadsheet
    flattentool.unflatten(input_name, **flattentool_options)
  File "__init__.py", line 244, in unflatten
    with_heading_source_map=heading_source_map,
  File "flattentool/input.py", line 360, in fancy_unflatten
    cell_tree = self.do_unflatten()
  File "flattentool/input.py", line 325, in do_unflatten
    unflattened = unflatten_main_with_parser(self.parser, cells, self.timezone, self.xml, self.id_name)
  File "flattentool/input.py", line 826, in unflatten_main_with_parser
    raise ValueError("There is an object or list at '{}' but it should be an {}".format(path_till_now, current_type))

There is an object or list at 'amountAwarded' but it should be an number
@Bjwebb
Copy link
Member

Bjwebb commented May 20, 2020

@Bjwebb
Copy link
Member

Bjwebb commented May 20, 2020

This happens when someone puts extra path elements in a header, after something that should be a value.

For 360Giving, this happens when someone puts an extra colon where there shouldn't be: e.g. "Amount Awarded: website format", when only "Amount Awarded" is permitted (replacing the colon with another character e.g. a dash fixes this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant