# Root merging problem

**URL:** <https://root-forum.cern.ch/t/root-merging-problem/47150>\
**Category:** Newbie\
**Created:** [October 7, 2021, 10:45am UTC](https://root-forum.cern.ch/t/root-merging-problem/47150 "2021-10-07T10:45:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmmalikroot](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@nmmalikroot](https://root-forum.cern.ch/u/nmmalikroot)\
**Post date:** [October 7, 2021, 10:45am UTC](https://root-forum.cern.ch/t/root-merging-problem/47150/1 "2021-10-07T10:45:17Z")

</div>

while merging the root file I got the following error.  
getting the same error from hadd method and also with TFileMerger

```auto
Error in <TBufferFile::CheckByteCount>: object of class TList read too many bytes: 1263111989 instead of 189370165
Warning in <TBufferFile::CheckByteCount>: TList::Streamer() not in sync with data on file /tmp/ROOTMERGE-116c4b3a-2756-11ec-88cc-1e03010abeef.root, fix Streamer()

```

How to solve this issue?  
Thanks in advance

_ROOT Version:_ Not Provided  
_Platform:_ Not Provided  
_Compiler:_ Not Provided

* * *

---

<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:** [October 7, 2021, 11:34am UTC](https://root-forum.cern.ch/t/root-merging-problem/47150/2 "2021-10-07T11:34:38Z")

</div>

> [@nmmalikroot](#):
>
> ```auto
> Error in <TBufferFile::CheckByteCount>: object of class TList read too many bytes: 1263111989 instead of 189370165
> Warning in <TBufferFile::CheckByteCount>: TList::Streamer() not in sync with data on file /tmp/ROOTMERGE-116c4b3a-2756-11ec-88cc-1e03010abeef.root, fix St
> 
> ```

Usually this indicates that one of the input file is corrupted and may not be readable/useable. Can you try to reduce the number of input files that still produce the error to check whether this is really the case?

---

<div class="post-metadata">

**Author:** ![nmmalikroot](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@nmmalikroot](https://root-forum.cern.ch/u/nmmalikroot)\
**Post date:** [October 7, 2021, 11:40am UTC](https://root-forum.cern.ch/t/root-merging-problem/47150/3 "2021-10-07T11:40:27Z")

</div>

while reducing input file it merges successfully , this error is showing when adding more root files.  
what i did was merged half input file separatly and it sucessfully merged. After that i try to merge that two files, but it shows the above mention error.

---

<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:** [October 7, 2021, 12:02pm UTC](https://root-forum.cern.ch/t/root-merging-problem/47150/4 "2021-10-07T12:02:49Z")

</div>

Which version of ROOT are you using? (If it is not the newest, can you try a newer one). Can you provide the 2 files that lead to the error?

---

<div class="post-metadata">

**Author:** ![nmmalikroot](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@nmmalikroot](https://root-forum.cern.ch/u/nmmalikroot)\
**Post date:** [October 7, 2021, 3:53pm UTC](https://root-forum.cern.ch/t/root-merging-problem/47150/5 "2021-10-07T15:53:36Z")

</div>

[https://cernbox.cern.ch/index.php/s/n7w5NNrbs17tzOO](https://cernbox.cern.ch/index.php/s/n7w5NNrbs17tzOO)

---

<div class="post-metadata">

**Author:** ![nmmalikroot](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@nmmalikroot](https://root-forum.cern.ch/u/nmmalikroot)\
**Post date:** [October 7, 2021, 4:14pm UTC](https://root-forum.cern.ch/t/root-merging-problem/47150/6 "2021-10-07T16:14:33Z")

</div>

ROOT 6.20/08  
ROOT 5.34/30  
ROOT 6.24/04  
in every version showing same error

---

<div class="post-metadata">

**Author:** ![nmmalikroot](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@nmmalikroot](https://root-forum.cern.ch/u/nmmalikroot)\
**Post date:** [October 8, 2021, 10:31am UTC](https://root-forum.cern.ch/t/root-merging-problem/47150/7 "2021-10-08T10:31:35Z")

</div>

any suggestion

---

<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:** [October 15, 2021, 7:56pm UTC](https://root-forum.cern.ch/t/root-merging-problem/47150/8 "2021-10-15T19:56:47Z")

</div>

My apologies, It looks like I was too slow. The link provided is “expired”. Could you repost the file?

---

<div class="post-metadata">

**Author:** ![nmmalikroot](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@nmmalikroot](https://root-forum.cern.ch/u/nmmalikroot)\
**Post date:** [October 20, 2021, 9:36am UTC](https://root-forum.cern.ch/t/root-merging-problem/47150/9 "2021-10-20T09:36:47Z")

</div>

Thank you for the replay  
[https://cernbox.cern.ch/index.php/s/Zx2fhRjCSCxgg4i](https://cernbox.cern.ch/index.php/s/Zx2fhRjCSCxgg4i)

---

<div class="post-metadata">

**Author:** ![nmmalikroot](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@nmmalikroot](https://root-forum.cern.ch/u/nmmalikroot)\
**Post date:** [October 22, 2021, 4:06pm UTC](https://root-forum.cern.ch/t/root-merging-problem/47150/10 "2021-10-22T16:06:51Z")

</div>

@pcanal here is the link of file.
