Skip to content

Export Functionality Broken #1282

@ArnavBallinCode

Description

@ArnavBallinCode

Export Functionality: Multiple Exporters Failing

Problem Description

Following the fix for issue #1250 (HTTP 500 error preventing export page from loading), systematic testing reveals that approximately 7 out of 19 export options fail with "An unexpected error has occurred, please try again later" when attempting to generate exports.

The fix in PR #1258 successfully resolved the page load issue and form validation problems, but underlying issues within individual exporter implementations remain.

Current Status

Working Exporters (12 confirmed)

  • All invoices
  • Answers to file upload questions
  • Check-in log (all successful scans)
  • Email addresses (text file)
  • Gift card redemptions
  • Invoice data
  • List of orders with taxes
  • List of orders with taxes (PDF)
  • Order overview (PDF)
  • Order payments and refunds
  • Quota availabilities
  • Waiting list

Failing Exporters (7 confirmed)

All display error message: "An unexpected error has occurred, please try again later"

  • All PDF tickets in one file
  • Attendee badges
  • Check-in list
  • Check-in list (PDF)
  • Order data
  • Order data (JSON)
  • dekodi NREI (JSON)

Technical Details

Error Symptoms

  • Export page loads successfully
  • Forms render correctly
  • Submission returns generic error message
  • No specific error details shown to user
  • HTTP 200 status returned (not 500)

Observed Log Patterns

Docker logs show lxml.etree errors for some exporters:

lxml.etree.LxmlSyntaxError: inconsistent exit action in context manager
lxml.etree.LxmlSyntaxError: not in an element

These errors appear related to Excel/XML generation in openpyxl library interactions.

Previously Fixed Issues

Issue 1: Event.items vs Event.products

Issue 2: Missing JSON_FIELD_AVAILABLE Setting

Issue 3: Form Validation Logic

Testing Methodology

Testing performed at /control/event/{organizer}/{event}/orders/export/

For each exporter:

  1. Navigate to export page
  2. Select exporter from list
  3. Fill required fields (if any)
  4. Click generate/export button
  5. Document success or failure with error message

Related Work

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