title: Cannot create namespace in multi-document transaction(MongoDB 4.0, Spring Data 2.1.0, Spring Boot)
body: <p>This question regarding to Spring boot, Mongo4.0, Spring-data application.</p>
  <p>I have upgraded from MongoDB 3.6.x to MongoDB 4.0 and Spring data 2.0.x to Spring-data 2.1.0 for transactional management while inserting data into multiple documents. But here I face this issue while creating a database, collection and inserting a document into the collection.</p>
  <h3>Issue</h3>
  <pre><code>Cannot create namespace sampledb_200.demo in multi-document transaction 
  </code></pre>
  <p>Here <strong>sampldb_200</strong> is database name and <strong>demo</strong> is the collection name.</p>
  <p>In earlier mongodb3.6.X versions, Spring Data 2.0.x, I was able to do database, collection creation, document insertion simultaneously even database and collection do not exist.</p>
  <p>Using Spring Data 2.1.0, MongoDB 4.0, Database, collection creation, and insertion does not happen under one function and database, collection creation to be done explicitly.</p>