# Bug OP-11114 - Destroy journals with invalid data_type associations

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

## Open points

_No work packages_

## Details

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

In <mention class="mention" data-id="43839" data-type="work_package" data-text="##43839">##43839</mention>, it was discovered that there are journal entries for work packages, whose data types are assigned to another journal type. These should get removed ideally before the fix journal migration runs.

A new migration was added that checks for these invalid journals and destroy them
