title: Cosmos DB Stored Procedure Call returns "PartitionKey value must be supplied for this operation"
body: <p>I am developing a C# Azure Function and want to execute a stored procedure in Cosmos DB like the following:</p>
  
  <pre><code>string sprocName = "testSPROC";
  int partitionId = contentJSON.partitionid;
  RequestOptions requestOptions = new RequestOptions { PartitionKey = new PartitionKey(partitionId), EnableScriptLogging = true };
  var sprocResponse = await client.ExecuteStoredProcedureAsync&lt;Object&gt;(
      UriFactory.CreateStoredProcedureUri(databaseName, collectionName, sprocName),
      contentJSON,
      requestOptions);
  </code></pre>
  
  <p>The CosmosDB collection is partition by partitionid. But when I want to execute the stored procedure, it returns: </p>
  
  <blockquote>
    <p>PartitionKey value must be supplied for this operation</p>
  </blockquote>
  
  <p>Why?</p>