# Bug OP-2470 - Copy project not working / ArgumentError in CopyProjectJob

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 5.0.4 |
| Observed in versions |  |
| 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

On SaaS (but I guess not SaaS specific), we’ve been getting two instances of this error:

**Actual**

  - No email notification sent and project not created when copying project (in project settings or admin settings).

**Expected**

  - Project created and email sent when copying project.

<!-- end list -->

    Class
    CopyProjectJob
    Arguments
    "instance_1447835208-9770002-3182"
    {"user_id"=>4, "source_project_id"=>2, "target_project_params"=>{"name"=>"GARREIS Warenpräsentation", "description"=>"!http://www.garreis-displays.de/assets/images/garreis-logo.png!\r\n\r\nProjekt zur kontinuierlichen Optimierung der GARREIS Warenpräsentation Webseite.\r\n\r\n", "is_public"=>"0", "identifier"=>"garreis-warenpraesentation", "project_type_id"=>"2", "type_ids"=>["1", "", "", "", "4", "", "", "", "7", ""], "enabled_module_names"=>["", "work_package_tracking", "", "", "news", "", "", "", "calendar", "", "", "", "", "", "", "", "activity"]}, "enabled_modules"=>["", "work_package_tracking", "", "", "news", "", "", "", "calendar", "", "", "", "", "", "", "", "activity"], "associations_to_copy"=>["queries", "members", "categories", ""], "send_mails"=>false}
    Exception
    ArgumentError
    Error
    missing keywords: user_id, source_project_id, target_project_params, enabled_modules, associations_to_copy
