Azure Cosmos DB status: "Creating"
Hello I tried to create a cosmo database with containers, using bisep, but something went wrong, and now I have a cosmo account that has been created for 5 days. "Status: Creating" I can’t delete it, the resource group couldn’t be deleted…
Query items (container.query_items) for aio CosmosClient works for query that returns few items but fails when the number of items returned increase
Hello, I'm relatively new to aio.CosmosClient which is a Cosmos DB Client for Python to be used with async code. This is the snippet of my code in one function: async_iter = container.query_items( query=sql_query, parameters=query_params, …
![](https://techprofile.blob.core.windows.net/images/kjzQAO5Oq0Oj37wdNf6qTQ.png?8D8E42)
Azure Cosmos DB for PostgreSQL. Prepared statement error
I am running into issues regarding the pgbouncer connection pooling in Azure Cosmos DB for PostgreSQL: https://learn.microsoft.com/en-us/azure/cosmos-db/postgresql/concepts-connection-pool. The issue is that I get the error: "prepared statement…
![](https://techprofile.blob.core.windows.net/images/9CqRWkWyk0WIvV6eSiSD-g.png?8DB6B7)
Azure Synapse analytics with CosmosDB query is giving null values
Hi Team, we are storing data in Azure cosmos db for mongo and trying to query from Azure synapse serverless pool.when we query with Query items with full fidelity schema we are getting the values else we are getting string:value. can you please help us…
Azure Cosmos DB with mongo don't support .sort operation ?
Hi, after trying to query data from cosmos db (configured for mongo), but I got error on .sort({"at": -1}) Everything works on localhost mongo db very well, but not in azure. Trace back from python is: 2024-04-09T13:02:08.1267872Z Traceback…
Cosmos DB copy in ADF comes from two regions instead of one region
I have one ADF instance in West US region and I have a Cosmos DB in East US. When running a copy activity in ADF from Cosmos to Azure SQL, I see the copy comes from East US and West US regions. The copy should come just from East US. Could this beavior…
Does Azure Cosmos DB for PostgreSQL support logical decoding?
Hi, I want to use debezium to stream CDC events from the Azure Cosmos DB for PostgreSQL cluster. But it seems that I cannot create a user (role) with REPLICATION privilege via the citus user. So how can I get a user with REPLICATION privilege? FYI:…
![](https://techprofile.blob.core.windows.net/images/9CqRWkWyk0WIvV6eSiSD-g.png?8DB6B7)
[INTERNAL_ERROR] The Spark SQL phase optimization failed with an internal error. You hit a bug in Spark or the Spark plugins you use.
"I am trying to extract data from Azure Cosmos DB using PySpark and I am getting the following error: Py4JJavaError: An error occurred while calling o700.save.: org.apache.spark.SparkException: [INTERNAL_ERROR] The Spark SQL phase optimization…
How to enable partition key delete feature for my Azure cosmos account?
var deleteResponse = await container.DeleteAllItemsByPartitionKeyStreamAsync(new PartitionKey(partitionKey)); I have used this code snippet from referring -…
![](https://techprofile.blob.core.windows.net/images/iwxOrAFAAwAAAAAAAAAAAA.png?8DBE14)
How to run stored procedure for hierarchical partition container
I am trying to run stored procedure from Azure Portal UI. The container has hierarchical partition with two levels. When trying to give the partition key value im providing input as json: {"level1": "value1", "level2":…
Update to version 3 of the Azure Cosmos DB .NET SDK by 31 August 2024
We received this email stating "we'll retire version 2.x of this SDK on 31 August 2024." What does retirement mean? What will stop working and what will continue to work if i stay on version 2.x
![](https://techprofile.blob.core.windows.net/images/kjzQAO5Oq0Oj37wdNf6qTQ.png?8D8E42)
How to use mTLS to secure a sql database
Hi, I'm trying to an managed sql database in Azure using either a managed sql instance or cosmosdb with the postgres interface. However I would like to secure the communication towards it using mTLS since all of the communication will come from…
![](https://techprofile.blob.core.windows.net/images/lvNaBJBqh0eurOu4q2bQSQ.png?8DA4E8)
Batch upload document to Azure Cosmos DB using Perl
I have successfully set up Postman Collections to access Microsoft Azure Cosmos DB via REST APIs by following https://github.com/sajeetharan/CosmosDBPostmanGuide. The next step I need to perform is gather sample JSON data to be batch uploaded to our…
Azure durable functions Activity and CosmosDBInput binding usage
I am using azure durable functions where in from kafka trigger we invoke and orchestrator function which triggers various activities. With in trigger, we store the message with in cosmos db. However we want to further enrich the stored message with in…
Metadata permissions clarity
Hello, Having a few doubts related to Metadata permissions. What is metadata read/write permissions? What is the use of it, and whether this permission is required for an user who majorly uses only Azure portal for managing the resources? How to…
How can I implement asynchronous loading into Azure Cosmos DB (Gremlin) with Python 3.10 correctly?
Hello, I have an Event Grid trigger Azure function that takes events, processes them, checks if a vertex exists in the Cosmos DB (Gremlin), and if not, adds this vertex to the database. When the number of events for processing is small, everything…
![](https://techprofile.blob.core.windows.net/images/iwxOrAFAAwAAAAAAAAAAAA.png?8DBE14)
Why am I asked to update Azure Cosmos DB .NET SDK to version 3 by 31 August 2024? We've never been using version 2 to the best of my knowledge.
Hi, I've received the following email: Update to version 3 of the Azure Cosmos DB .NET SDK by 31 August 2024 You're receiving this email because you've used version 2.x of the Azure Cosmos DB .NET SDK. Because version 3 of the Azure Cosmos DB .NET SDK…
Request blocked by Auth - user does not have required RBAC permission Microsoft.DocumentDB/databaseAccounts/readMetaData
First error is trying to load the FlightExpression items in the azsupportrp-casemgmt-westus db in the azure portal I was told that the cosmos data explorer would resolve the AAD error above so I used this link to access the db…
![](https://techprofile.blob.core.windows.net/images/kjzQAO5Oq0Oj37wdNf6qTQ.png?8D8E42)
Cosmos DB read operation timeout after second try with Error Code 500
I am having issues with Cosmos DB where the first read operation succeeds and returns result from DB as expected, but all subsequent reads fail with Error Code 500. The error message mentions a session token not being available. How can I resolve this…
![](https://techprofile.blob.core.windows.net/images/9CqRWkWyk0WIvV6eSiSD-g.png?8DB6B7)
Role required to read/write data from cosmos DB (SQL API) from ADF?
We are trying to read/write data from Azure data factory, since local authentication is disabled in cosmos we are trying to access cosmos DB using managed identity. However even with Cosmos DB Account Contributor role assigned to managed identity of…