title: PartitionKey extracted from document doesn't match the one specified in the header on CreateItemAsync
body: <p>I have a bit of a problem using Microsoft.Azure.Cosmos version 3.2.0,</p>
  <p>upon running</p>
  <pre><code>await this.Container.CreateItemAsync&lt;LogEntity&gt;(logEntity, new PartitionKey(&quot;anythingIPutHere&quot;));
  </code></pre>
  <p>it throws</p>
  <blockquote>
  <p>Microsoft.Azure.Cosmos.CosmosException   HResult=0x80131500<br />
  Message=Response status code does not indicate success: 400 Substatus:
  1001 Reason: (Message: {&quot;Errors&quot;:[&quot;PartitionKey extracted from
  document doesn't match the one specified in the header&quot;]}</p>
  </blockquote>
  <p>but if I put,</p>
  <pre><code>await this.Container.CreateItemAsync&lt;LogEntity&gt;(logEntity, new PartitionKey(logEntity.Id));
  </code></pre>
  <p>it works and it is the only case when it works.</p>
  <p>I have also tried</p>
  <ul>
  <li>Putting the value for the partition key as a property in the object;</li>
  <li>Even specifying a <code>partitionKey</code> JSON property name but no success;</li>
  </ul>
  <p>I looked over some guides on the Microsoft site and it seems you can specify the partition key to be some string, not necessary to be the id or specified with a property name on the object; so why is this happening?</p>