# Bug OP-17399 - Copying project fails with internal error (lock version null)

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Project settings, Modules and project features / Meetings |
| Target versions | 16.3.0 |
| Observed in versions |  |
| Sprint | 16.3.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 | Jens Ulferts |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Create a new project based on a template
    

### What is the buggy behavior?

*   Copying fails with an internal error, the logs saying
    
    *   `Failed to copy dependency wiki: PG::NotNullViolation: ERROR: null value in column "lock_version" of relation "wiki_pages" violates not-null DETAIL: Failing row contains (1170, 639, Anforderungen, 2025-06-17 11:49:25.826311, f, null, anforderungen, 2025-06-17 11:49:25.826311, 253,`
        
*   now the curious thing is, that, if you reload the /projects/new page first, or simply click on save after the error again, it works
    

### What is the expected behavior?

*   Copying the project should work straight away
    

### Environment information

**OpenProject installation type**

*   Hosted cloud edition
    

**OpenProject version**

_v16.1.0_
