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

NYC: DuplicateItemError: attempt to import data that would conflict with data already in the import: {'on_behalf_of_id': N... #294

Open
fgregg opened this issue Oct 31, 2019 · 0 comments
Assignees

Comments

@fgregg
Copy link
Contributor

fgregg commented Oct 31, 2019

https://sentry.io/organizations/datamade/issues/1243332860/?referrer=github_plugin

DuplicateItemError: attempt to import data that would conflict with data already in the import: {'on_behalf_of_id': None, 'extras': {}, 'label': '', 'organization_id': 'ocd-organization/61114c77-4b84-44b2-a68f-e869362cd2e0', 'post_id': None, 'role': 'Chairperson', 'person_name': 'Adrienne E. Adams', 'person_id': 'ocd-person/8022908a-76da-454e-bd39-bc3b0acdf47f', 'end_date': '2021-12-31', 'start_date': '2019-09-25'} (already imported as Adrienne E. Adams in Subcommittee on Landmarks, Public Sitings and Dispositions (Chairperson))
obj1 sources: []
obj2 sources: []
(3 additional frame(s) were not displayed)
...
  File "pupa/cli/commands/update.py", line 307, in do_handle
    report['import'] = self.do_import(juris, args)
  File "pupa/cli/commands/update.py", line 211, in do_import
    report.update(membership_importer.import_directory(datadir))
  File "pupa/importers/base.py", line 196, in import_directory
    return self.import_data(json_stream())
  File "pupa/importers/base.py", line 233, in import_data
    obj_id, what = self.import_item(data)
  File "pupa/importers/base.py", line 272, in import_item
    raise DuplicateItemError(data, obj, related.get('sources', []))

DuplicateItemError: attempt to import data that would conflict with data already in the import: {'on_behalf_of_id': None, 'extras': {}, 'label': '', 'organization_id': 'ocd-organization/61114c77-4b84-44b2-a68f-e869362cd2e0', 'post_id': None, 'role': 'Chairperson', 'person_name': 'Adrienne E. Adams', 'person_id': 'ocd-person/8022908a-76da-454e-bd39-bc3b0acdf47f', 'end_date': '2021-12-31', 'start_date': '2019-09-25'} (already imported as Adrienne E. Adams in Subcommittee on Landmarks, Public Sitings and Dispositions (Chairperson))
obj1 sources: []
obj2 sources: []
@fgregg fgregg self-assigned this Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant