# Bug OP-19830 - PDF table export grouped by a hierarchy custom field stops the full export

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-19830

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Export / PDF Export |
| Target versions | 17.8.0 |
| Observed in versions | 17.6.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.6.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Andrej Sandorf |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as a user with permissions export the work package list as a PDF table&nbsp;
    
2.  Have a hierarchy custom field
    
3.  Group the view by this custom field
    
4.  Export the list as a PDF table
    

### What is the buggy behavior?

*   The export stops with error message `The PDF export could not be saved: undefined method 'to_i' for an instance of Array`
    

### What is the expected behavior?

1.  The export finishes successfully
    

### **Logs**

[https://appsignal.com/openproject-gmbh/sites/6813715a55b0b20ed373597c/exceptions/incidents/1699/traces/c11d989b796a756b64427e472484b1b5](https://appsignal.com/openproject-gmbh/sites/6813715a55b0b20ed373597c/exceptions/incidents/1699/traces/c11d989b796a756b64427e472484b1b5)

### Environment information

**OpenProject installation type**

*   [x] All

**OpenProject version**

v17.6.1

**Browser**

*   [x] All

**Operating System**

*   [x] All

**Language**

*   [x] All
