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

module 'onadata.apps.main.models.meta_data' has no attribute 'DoesNotExist' #1758

Closed
WinnyTroy opened this issue Jan 7, 2020 · 0 comments · Fixed by #1760
Closed

module 'onadata.apps.main.models.meta_data' has no attribute 'DoesNotExist' #1758

WinnyTroy opened this issue Jan 7, 2020 · 0 comments · Fixed by #1760
Assignees
Labels

Comments

@WinnyTroy
Copy link
Contributor

WinnyTroy commented Jan 7, 2020

[2020-01-07 06:38:15,791: ERROR/ForkPoolWorker-1] Task onadata.apps.viewer.tasks.create_external_export[2e3d52cf-02e1-418f-a501-bd35d2e07524] raised unexpected: DoesNotExist('MetaData matching query does not exist.',)
Traceback (most recent call last):
  File "/home/onadata/.virtualenvs/onadata/lib/python3.6/site-packages/celery/app/trace.py", line 382, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/onadata/.virtualenvs/onadata/lib/python3.6/site-packages/celery/app/trace.py", line 641, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/onadata/app-versioned/1575642939/onadata/apps/viewer/tasks.py", line 364, in create_external_export
    xform=export.xform)
  File "/home/onadata/app-versioned/1575642939/onadata/libs/utils/export_tools.py", line 747, in generate_external_export
    server, name = _get_server_from_metadata(xform, meta, token)
  File "/home/onadata/app-versioned/1575642939/onadata/libs/utils/export_tools.py", line 704, in _get_server_from_metadata
    result = report_templates.get(pk=meta)
  File "/home/onadata/.virtualenvs/onadata/lib/python3.6/site-packages/django/db/models/query.py", line 399, in get
    self.model._meta.object_name
onadata.apps.main.models.meta_data.MetaData.DoesNotExist: MetaData matching query does not exist

Aha! Link: https://ona.aha.io/features/PROD-180

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

Successfully merging a pull request may close this issue.

4 participants