title: Azure Logic App Partition key [X] is invalid with COsmos Db
body: <p>I need to save JSON parsed data to Cosmos Db, HTTP trigger works as it should as well as parsing but getting <code>Partition key [my_dynamic_key_value] is invalid</code>.</p>
  
  <p>Did anyone have a similar issue?
  I have found this article <a href="https://marcelzehner.ch/2019/02/05/issues-with-creating-new-cosmos-db-documents-with-logic-app/" rel="nofollow noreferrer">link</a> but still getting the same error.</p>
  
  <p>Thanks</p>
  
  <p>EDIT 1</p>
  
  <p>This is the flow for adding item to DB
  <a href="https://i.stack.imgur.com/KBLHp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KBLHp.png" alt="cosmos db flow"></a></p>
  
  <p>Schema:</p>
  
  <pre><code>{
      "type": "array",
      "items": {
          "type": "object",
          "properties": {
              "id": {
                  "type": "string"
              },
              "Groups": {
                  "type": "array",
                  "items": {
                      "type": "string"
                  }
              },
              "JobName": {
                  "type": "string"
              },
              "Link": {
                  "type": "string"
              },
              "MinSalary": {
                  "type": "string"
              },
              "MaxSalary": {
                  "type": "string"
              },
              "Hours": {
                  "type": "string"
              },
              "WorkPattern": {
                  "type": "string"
              },
              "Details": {
                  "type": "array",
                  "items": {
                      "type": "object",
                      "properties": {
                          "Name": {
                              "type": "string"
                          },
                          "Detail": {
                              "type": "string"
                          }
                      },
                      "required": [
                          "Name",
                          "Detail"
                      ]
                  }
              }
          },
          "required": [
              "id",
              "Groups",
              "JobName",
              "Link",
              "MinSalary",
              "MaxSalary",
              "Hours",
              "WorkPattern",
              "Details"
          ]
      }
  }
  </code></pre>
  
  <p>Here is a response:</p>
  
  <pre><code>{
    "code": "BadRequest",
    "message": "Partition key [1bb2d44f-a066-4fa8-8a78-0cdcea1a756c] is invalid.\r\nActivityId: 345f9a99-534b-40cb-9dc0-9863dc8c90f5, \r\nRequestStartTime: 2020-04-28T08:04:46.8249255Z, RequestEndTime: 2020-04-28T08:04:46.8249255Z,  Number of regions attempted:1\r\n, Microsoft.Azure.Documents.Common/2.10.0"
  }
  </code></pre>