# Bug OP-9921 - Filter error message when using "Add existing" and having included unrelated projects

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.1.0 |
| Observed in versions |  |
| Sprint | 12.1.0 |
| 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

### **Environment**:

Your OpenProject Version: 12.1

### **Steps to reproduce:**

1.  Have two projects (not within a hierarchy) that each have a work package within the current week.
2.  Assign both work packages to the same user.
3.  Create a team planner that has the assignee configured as a row and that includes both projects.
4.  Type into the drop input field for the &quot;Add existing&quot; functionality.

### **Actual Behavior**

Regardless of what is typed in, an error message is displayed:

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

This is because the id of the work package not within the project the team planner is created in is not a valid filter value. 

### **Expected Behavior**

No error message
