title: error in azure portal when trying to view all registered stored procedures in documentdb: Failed to get scripts
body: <p>I created a couple of API methods <a href="https://russellyoung.net/2016/06/18/managing-documentdb-with-powershell/" rel="nofollow noreferrer">based on this explanation</a> to create stored procedures with Powershell for documentdb. </p>
  
  <p>When trying to check if the stored procedures are indeed in the portal available, I receive an error that says:</p>
  
  <pre><code>Failed to get scripts. Please try again.
  </code></pre>
  
  <p>I can retrieve the registered stored procedures with another API call from powershell, and I can also delete the stored procedures without any error message. When I deleted all the scripts, the error message disappears too. So the Portal does recognize that I registered stored procedures, but it seems it just fails to visualize them. </p>