# 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:** 1\
**Showing post:** 2

<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

---

_[View the full topic](https://root-forum.cern.ch/t/error-when-accessing-the-root-file/54910)._
