# Problems with Serialization

**URL:** <https://openfhe.discourse.group/t/problems-with-serialization/593>\
**Category:** Library Questions\
**Created:** [June 1, 2023, 12:58pm UTC](https://openfhe.discourse.group/t/problems-with-serialization/593 "2023-06-01T12:58:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RiccardoPazzi](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@RiccardoPazzi](https://openfhe.discourse.group/u/RiccardoPazzi)\
**Post date:** [June 1, 2023, 12:58pm UTC](https://openfhe.discourse.group/t/problems-with-serialization/593/1 "2023-06-01T12:58:54Z")

</div>

Hi everyone!  
I’m having an issue in running serialization procedures: the example programs in bin/examples all throw the error message “Error writing Serialization of the crypto context …”.  
I followed the build procedures on a Ubuntu 22.04 VM and all examples are working fine except for the ones involving serialization.  
I might have missed additional procedures that are required to make serialization work, I simply followed the installation guide.

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![RiccardoPazzi](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@RiccardoPazzi](https://openfhe.discourse.group/u/RiccardoPazzi)\
**Post date:** [June 1, 2023, 1:19pm UTC](https://openfhe.discourse.group/t/problems-with-serialization/593/2 "2023-06-01T13:19:17Z")

</div>

If anyone else is having the same problem it’s sufficient to create the directory demoData in the examples folder, it’s printed in the code but I didn’t see it in the Docs.  
Sorry!
