# Bug OP-14638 - Internal error (comparisson NilClass with String failed) on query 5000 on community

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.4.1 |
| Observed in versions |  |
| Sprint | 13.4.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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 |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/95364/content"></div></figure>

The problem starts when adding a version filter on 14.0

**How to reproduce (rough sketch)**

*   Create two projects A, B
*   Create a work package with two custom fields that are active only in A
    *   One of them a list custom field
    *   The other one a text custom field
*   Assign custom values for those two fields
*   Move the work package to project B, where neither of the fields is active
*   Add a baseline comparison to it that includes the move of the project

[https://community.openproject.org/projects/openproject/work\_packages?query\_id=5000](https://community.openproject.org/projects/openproject/work_packages?query_id=5000)
