---
title: Changing Message Types After Logging
description: Can you change Message Types after logging events? Learn why Message Types are immutable and how to use versioning for schema changes.
---

# Can I change Message Types after logging events?

**No—[Message Types][Message Types Overview] are immutable once events are logged.** You cannot rename, delete, or restructure existing Message Types without breaking searchability. Use Message Type versioning to handle schema evolution.

## Why Message Types Are Immutable

**Message Types define the data model for business intelligence:**

* [Search Field Expressions][] - Bound to specific Message Types, extract Order Numbers, Customer IDs, amounts
* [Log Views][] - Filter by Message Type to show relevant logs to specific teams
* [Non-Events Monitoring][] - Tracks expected message volumes per Message Type
* [Business Process Modeling (BPM)][BPM] - Correlates transactions using Message Type sequences

**Changing a Message Type breaks all these features for historical logs.**

## What Happens If You Try to Change

### Scenario 1: Rename Message Type

**Original:** `OriginalMessageTypeName: "PurchaseOrder#1.0"`  
**Attempted change:** Rename to "PurchaseOrder_v1"

**Result:**

* ❌ **Historical logs become orphaned** - 500K logged events with "PurchaseOrder#1.0" no longer match renamed type
* ❌ **[Search Fields][] stop working** - XPath expressions for "PurchaseOrder#1.0" don't apply to "PurchaseOrder_v1"
* ❌ **Log Views lose data** - "Procurement View" filtered by "PurchaseOrder#1.0" shows zero results
* ❌ **Non-Events Monitoring breaks** - Volume alerts for "PurchaseOrder#1.0" no longer trigger

**Don't rename Message Types.**

### Scenario 2: Delete Message Type

**Attempted:** Delete "Invoice#1.0" Message Type

**Result:**

* ❌ **Historical logs lose context** - 1 million logged invoices show generic "unknown type"
* ❌ **Search Fields deleted** - Cannot search by Invoice Number, Customer ID, Invoice Amount
* ❌ **[Reports][] break** - Finance team's "Invoice View" shows blank
* ❌ **Data loss** - Cannot retroactively restore deleted Message Type

**Never delete Message Types with existing logs.**

## Solution: Message Type Versioning

**When schema changes, create new Message Type version:**

**Version 1.0 (2025):** `<Order><OrderId>PO-12345</OrderId></Order>`  
**Version 2.0 (2026):** `<Order><PurchaseOrderNumber>PO-12345</PurchaseOrderNumber><ShippingMethod>Express</ShippingMethod></Order>`

**Solution:**

1. **Keep "PurchaseOrder#1.0" unchanged** - 500K historical logs remain searchable
2. **Create "PurchaseOrder#2.0"** - New Message Type for new schema
3. **Configure Search Fields for v2.0** - XPath for renamed field
4. **Update integration code** - Set `OriginalMessageTypeName: "PurchaseOrder#2.0"` for new logs
5. **Both versions coexist** - Historical logs (v1.0) and new logs (v2.0) both searchable

**Read full guide:** [FAQ - How do I handle message schema changes over time?][]

## Acceptable Changes (Safe to Modify)

### :fa-circle-check: Add New Search Fields

**Safe:** Create additional Search Field Expressions for existing Message Type—:Nodinite: re-indexes historical logs.

### :fa-circle-check: Update Message Type Description

**Safe:** Modify description field—zero impact on logs, Search Fields, or Log Views.

---

**Related Topics:**  
[Message Types Overview][]  
[Handling Schema Changes (Versioning Guide)][]  
[Search Field Expressions][]  

**See all FAQs:** [Troubleshooting Overview][]

## :fa-hand-point-right: Next Steps

:fa-book: [Back to Custom Logging Overview][Custom Logging Overview]  

## :fa-link-horizontal: Related Topics

* :fa-question-circle: [Troubleshooting Overview][Troubleshooting]  

[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[Custom Logging Overview]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Overview.md
[FAQ - How do I handle message schema changes over time?]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Schema%20Changes.md
[Handling Schema Changes (Versioning Guide)]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Schema%20Changes.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Message Types Overview]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Non-Events Monitoring]:{ndr}/Logging%20and%20Monitoring/Non-Events/Overview.md
[Reports]:{ndr}/Core%20Services/Web%20API/Features/Reports/Overview.md
[Search Field Expressions]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Overview.md
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[Troubleshooting]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Overview.md
[Troubleshooting Overview]:{ndr}/Logging%20and%20Monitoring/Custom%20Logging/Troubleshooting/Overview.md