# Type name error after RNTuple Merging

**URL:** <https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827>\
**Category:** ROOT\
**Tags:** root\
**Created:** [April 30, 2026, 11:58am UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827 "2026-04-30T11:58:29Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![adenisbl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@adenisbl](https://root-forum.cern.ch/u/adenisbl)\
**Post date:** [April 30, 2026, 11:58am UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/1 "2026-04-30T11:58:30Z")

</div>

* * *

Hello ! Here is a summary of my problem.  
Objective : merging several RNTuples in a single RNTuple to ease analysis.  
**Method** : I use the TFileMerger.  
**Success** : The output RNTuple is readable (by a TBrowser for instance).  
**Problem** : whenever I try to do some actual analysis of the output RNTuple (using the method described in the RNTuple ntpl010\_skim tutorial, to add computed fields/make cuts…), something breaks.  
More precisely (after rigorous investigation), it is when using the ROOT::RNTupleReader::GetModel().  
**Error thrawn** :  
```  
r`oot [2] addIsEventWW4Jets(“temp_xs_merged_e189_d2.tree.root”)`  
`Treating temp_xs_merged_e189_d2.tree.root…`  
`Error in `\<`TRint::HandleTermInput()`\>`: ROOT::RException caught: incompatible type name for field _0: ROOT::Math::LorentzVector`\<`ROOT::Math::PxPyPzE4D`\>`> vs. ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D > >`  
`At:`  
`virtual void ROOT::RClassField::BeforeConnectPageSource(ROOT::Internal::RPageSource&) [/root/parts/root/src/tree/ntuple/src/RFieldMeta.cxx:440]`  
```\*\*  
Presumed analysis\*\* : From what I understand this is due to a change in what c++ allowed between versions in the function templates syntax. (“\>\>” not allowed and replaced by “\> \>”, then allowed in a lated version).

Does anyone have a solution for that ? Be it another way to merge RNTuples, a system-wide or script-wide fix for this specific error,…  
Thanks in advance !

_ROOT Version:_ 6.36.04  
_Platform:_ Ubuntu 26.04 (24.04)  
_Compiler:_ C++ 13.3.0

* * *

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [April 30, 2026, 12:03pm UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/2 "2026-04-30T12:03:47Z")

</div>

Welcome to the ROOT Forum!  
Maybe @jblomer or @pcanal can help you with that

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [April 30, 2026, 12:36pm UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/3 "2026-04-30T12:36:24Z")

</div>

This looks like an issue with type name normalization. Could it be that the input files were produced with ROOT v6.34? Later ROOT versions do workaround the 6.34 type name issue but perhaps merging the files breaks the workaround. @silverweed Can you take a look?

Would it be possible to give us access to the input files?

---

<div class="post-metadata">

**Author:** ![adenisbl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@adenisbl](https://root-forum.cern.ch/u/adenisbl)\
**Post date:** [April 30, 2026, 12:49pm UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/4 "2026-04-30T12:49:30Z")

</div>

Here is the shared folder from my CERNBox, containing all the files I am merging, and to which you should have access if I understood how it works correctly : ````https://cernbox.cern.ch/s/D6eYOmxeaeHZzuz```` (sorry, as a new user the forum doesn’t let me share links)  
Regarding the version of root used, I created the files using delphi-nanoaod scripts, on CERN’s cluster lxplus, which should use ROOT 6.38.04.

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [April 30, 2026, 1:14pm UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/5 "2026-04-30T13:14:11Z")

</div>

Thank you! From what I can see, files were indeed produced with ROOT v6.34.

I think I see the error in the RNTuple merger that explains the problem. We’ll most likely create a github issue and fix it in the RNTuple merging code. We’ll keep you posted.

---

<div class="post-metadata">

**Author:** ![adenisbl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@adenisbl](https://root-forum.cern.ch/u/adenisbl)\
**Post date:** [April 30, 2026, 1:25pm UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/6 "2026-04-30T13:25:01Z")

</div>

Thanks a lot !

---

<div class="post-metadata">

**Author:** ![silverweed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/silverweed/32/36670_2.png) [@silverweed](https://root-forum.cern.ch/u/silverweed)\
**Post date:** [May 4, 2026, 11:19am UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/7 "2026-05-04T11:19:52Z")

</div>

Thank you for the bug report, @adenisbl. I opened an [issue](https://github.com/root-project/root/issues/22130) to keep track of this and will try to fix it as soon as possible.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [May 18, 2026, 11:20am UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/8 "2026-05-18T11:20:47Z")

</div>

Closed on May 18, 2026, 11:20am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![silverweed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/silverweed/32/36670_2.png) [@silverweed](https://root-forum.cern.ch/u/silverweed)\
**Post date:** [July 15, 2026, 7:28am UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/9 "2026-07-15T07:28:12Z")

</div>

Hello @adenisbl, sorry for taking so long to circle back to this issue. I have a local change which should fix the issue which I’ll turn into a PR soon.  
Would you mind if I used a couple of the files you shared in a regression test?

---

<div class="post-metadata">

**Author:** ![silverweed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/silverweed/32/36670_2.png) [@silverweed](https://root-forum.cern.ch/u/silverweed)\
**Post date:** [July 15, 2026, 7:28am UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/10 "2026-07-15T07:28:25Z")

</div>

Opened on July 15, 2026, 7:28am UTC



---

<div class="post-metadata">

**Author:** ![adenisbl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@adenisbl](https://root-forum.cern.ch/u/adenisbl)\
**Post date:** [July 15, 2026, 1:54pm UTC](https://root-forum.cern.ch/t/type-name-error-after-rntuple-merging/64827/11 "2026-07-15T13:54:14Z")

</div>

Hi. Do not worry, it forced me to find a method better suited to my specific needs. For the files, do not hesitate to use them. Do come back to me if you need info on how and from what they were built however.
