# Bug OP-20760 - Error 500 with "Duplicate in another project"

Project: OpenProject
Status: confirmed
URL: https://community.openproject.org/work_packages/OP-20760

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Work packages |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0, 17.9.8 |
| Sprint |  |
| 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

### Steps to reproduce

1.  Go to work package list
    
2.  Right click on a work package and select &quot;Duplicate in another project&quot;
    
3.  On the &quot;Duplicate work package&quot; page, select another project (selecting same project does not trigger the bug)
    
4.  Click &quot;Duplicate&quot; or &quot;Duplicate and follow&quot; button
    

### What is the buggy behavior?

*   Error 500
    
*   On appsignal, error is `No route matches {action: "show", controller: "work_packages", id: nil}, possible unmatched constraints: [:id]`
    

### What is the expected behavior?

1.  No 500, normal behavior
    

### **Logs**

Appsignal:

*   qa openproject-stage (18.0.0): [https://appsignal.com/openproject-gmbh/sites/678fa146338a5d816f8d696c/exceptions/incidents/2099/traces/696ec11ad2570d436fbb9a87208840ce](https://appsignal.com/openproject-gmbh/sites/678fa146338a5d816f8d696c/exceptions/incidents/2099/traces/696ec11ad2570d436fbb9a87208840ce)&nbsp;
    
*   openproject eu (17.9.8): [https://appsignal.com/openproject-gmbh/sites/67ec0573b9811010d8c9071a/exceptions/incidents/1791/traces/d6d69a7b6f14fc0f51d0a8393d3795df](https://appsignal.com/openproject-gmbh/sites/67ec0573b9811010d8c9071a/exceptions/incidents/1791/traces/d6d69a7b6f14fc0f51d0a8393d3795df)
    

### Screenshots and other files

_<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/926929/content">_

### Environment information

**OpenProject installation type**

*   [x] Cloud edition
*   [ ] On-Premise
*   [ ] Packaged installation
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

17.9.8 and 18.0.0

<br>

**Browser**

*   [ ] Chrome
*   [x] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [ ] Windows
*   [x] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

*   [x] English
*   [x] French
*   [ ] Other:
