# TTree larger than 100Gb error while merging files

**URL:** <https://root-forum.cern.ch/t/ttree-larger-than-100gb-error-while-merging-files/53916>\
**Category:** Newbie\
**Created:** [March 7, 2023, 4:16pm UTC](https://root-forum.cern.ch/t/ttree-larger-than-100gb-error-while-merging-files/53916 "2023-03-07T16:16:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![helene](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/7993a0/32.png) [@helene](https://root-forum.cern.ch/u/helene)\
**Post date:** [March 7, 2023, 4:16pm UTC](https://root-forum.cern.ch/t/ttree-larger-than-100gb-error-while-merging-files/53916/1 "2023-03-07T16:16:56Z")

</div>

Hello,

When I am using hadd to merge all my root files, I encounter this error:

Output file of the TFile Merger (targeting results.xRay.root) has been deleted (likely due to a TTree larger than 100Gb)

Aborted

\_ROOT Version:6.26.06  
\_Platform:ComputeCanadaClusters  
\_Compiler:gcc/9.3.0

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [March 7, 2023, 5:06pm UTC](https://root-forum.cern.ch/t/ttree-larger-than-100gb-error-while-merging-files/53916/2 "2023-03-07T17:06:44Z")

</div>

In you current directory try again after creating a file name `rootlogon.C` containing:

```auto
{
    TTree::SetMaxTreeSize(TTree::kMaxEntries);
}

```

---

<div class="post-metadata">

**Author:** ![helene](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/7993a0/32.png) [@helene](https://root-forum.cern.ch/u/helene)\
**Post date:** [March 7, 2023, 6:17pm UTC](https://root-forum.cern.ch/t/ttree-larger-than-100gb-error-while-merging-files/53916/3 "2023-03-07T18:17:11Z")

</div>

Thanks I will try that!

Cheers
