DX xlsx and csv export fails if patient does not have an age

Issue #267 duplicate
David Platten created an issue

May affect other modalities too.

Comments (5)

  1. David Platten reporter

    Here's the error that is reported by celery:

    [2015-09-02 08:54:06,124: ERROR/MainProcess] Task remapp.exports.dx_export.dxxlsx[4e52dc93-2f75-4500-8073-6b6bb798b9c9] raised unexpected: DoesNotExist('PatientStudyModuleAttr matching query does not exist.',)
    Traceback (most recent call last):
      File "C:\Python27\Lib\site-packages\celery\app\trace.py", line 240, in trace_task
        R = retval = fun(*args, **kwargs)
      File "C:\Python27\Lib\site-packages\celery\app\trace.py", line 437, in __protected_call__
        return self.run(*args, **kwargs)
      File "C:\Python27\Lib\site-packages\openrem\remapp\exports\dx_export.py", line 393, in dxxlsx
      File "C:\Python27\Lib\site-packages\django\db\models\manager.py", line 127, in manager_method
        return getattr(self.get_queryset(), name)(*args, **kwargs)
      File "C:\Python27\Lib\site-packages\django\db\models\query.py", line 334, in get
    Exception: PatientStudyModuleAttr matching query does not exist.
  2. Log in to comment