# "Attempted schema writes when session type does not allow"

**URL:** <https://forum.typedb.com/t/attempted-schema-writes-when-session-type-does-not-allow/277>\
**Category:** TypeDB\
**Created:** [31 December 2022 11:17 UTC](https://forum.typedb.com/t/attempted-schema-writes-when-session-type-does-not-allow/277 "2022-12-31T11:17:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![troubleshooting](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@troubleshooting](https://forum.typedb.com/u/troubleshooting)\
**Post date:** [31 December 2022 11:17 UTC](https://forum.typedb.com/t/attempted-schema-writes-when-session-type-does-not-allow/277/1 "2022-12-31T11:17:53Z")

</div>

kindergarten question but what does it mean? Can someone please explain in detail?

---

<div class="post-metadata">

**Author:** ![james.williams](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.typedb.com/james.williams/32/49_2.png) [@james.williams](https://forum.typedb.com/u/james.williams)\
**Post date:** [2 January 2023 15:49 UTC](https://forum.typedb.com/t/attempted-schema-writes-when-session-type-does-not-allow/277/2 "2023-01-02T15:49:44Z")

</div>

Hey @troubleshooting,

You must be in a schema session to write a schema to a database in TypeDB. You’ve most likely attempted to write a schema while being in a data session.
