# Error when accessing the root file

**URL:** <https://root-forum.cern.ch/t/error-when-accessing-the-root-file/54910>\
**Category:** Newbie\
**Created:** [May 17, 2023, 5:39pm UTC](https://root-forum.cern.ch/t/error-when-accessing-the-root-file/54910 "2023-05-17T17:39:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![azinbeigi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@azinbeigi](https://root-forum.cern.ch/u/azinbeigi)\
**Post date:** [May 17, 2023, 5:39pm UTC](https://root-forum.cern.ch/t/error-when-accessing-the-root-file/54910/1 "2023-05-17T17:39:27Z")

</div>

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

_ROOT Version:_ 6.26.06  
_Platform:_ Cedar compute Canada cluster  
_Compiler:_ gcc

* * *

Hi Everyone,

I get an error while trying to access a phase space in root format for my Monte Carlo simulation with Geant4 on one of the computecanada clusters, cedar. Here is the mentioned error:

**Error in TBasket::Streamer: The value of fNbytes is incorrect (-1638279933) ; trying to recover by setting it to zero**

Does anyone have any idea how to solve this issue?

Thank you,

-A

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [May 17, 2023, 8:40pm UTC](https://root-forum.cern.ch/t/error-when-accessing-the-root-file/54910/2 "2023-05-17T20:40:44Z")

</div>

Dear @azinbeigi ,

There are a couple of already answered posts on the forum that might be relevant for your problem (for example [here](https://root-forum.cern.ch/t/opening-a-file-in-update-mode-causes-error-in-tbasket-streamer-the-value-of-fnbytes-is-incorrect/43340) and [here](https://root-forum.cern.ch/t/how-to-detect-xrootd-error-and-protect-the-output/47695)).

The error you report in general can mean that either the file was not properly written to disk or if you are reading it from a remote storage facility that something went wrong in the remote read.

Maybe @pcanal has more insights, but I encourage you to take a look at the posts mentioned above and search for similar ones here on the forum.  
Cheers,  
Vincenzo
