# Cannot create tables in MongoDB

**URL:** <https://community.cdata.com/t/cannot-create-tables-in-mongodb/283>\
**Category:** Data Sources\
**Tags:** article, mongodb\
**Created:** [July 24, 2023, 9:02pm UTC](https://community.cdata.com/t/cannot-create-tables-in-mongodb/283 "2023-07-24T21:02:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luçjano\_Capo](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/lu%C3%A7jano_capo/32/1638_2.png) [@Luçjano\_Capo](https://community.cdata.com/u/Lu%C3%A7jano_Capo)\
**Post date:** [July 24, 2023, 9:02pm UTC](https://community.cdata.com/t/cannot-create-tables-in-mongodb/283/1 "2023-07-24T21:02:48Z")

</div>

If you are trying to create a new table in MongoDB, you will need to utilize the  **GenerateSchemaFiles**  connection property and set that value **to OnCreate**. All you have to do is go to your connection manager, and under  **Advanced**  change the value of  **Generate Schema Files**  to  **OnCreate**.

 ![1330afe3-6f13-4017-97ce-679bea51c781.png](https://us1.discourse-cdn.com/cdata/original/2X/1/16359ade7fb84c74dec467de4fd8d813ba4a824f.png)
