vscode-cosmosdb
vscode-cosmosdb copied to clipboard
Fail to create a collection on the SQL Emulator
OS: Win10 Build Version: 20210128.1
Repro Steps:
- Make sure Azure Cosmos DB Emulator is installed.
- Attach both MongoDB Emulator and SQL Emulator.
- Create a database named 'data001' under SQL Emulator --> Create a collection.
- Check whether the collection is created successfully or not.
Expect: The collection is created successfully.
Actual:
Fail to create the collection with an error.
Details in Output:
10:56:39 AM: Error: Partition key path /_partitionKey is invalid for MongoDB API.
ActivityId: 5d887daa-1f88-468e-a36e-c33100e62740, Microsoft.Azure.Documents.Common/2.11.0
Related #1791
I am encountering a similar issue.
This also occurs when trying to provision the sample database from the emulator web interface:
The same error listed by @v-xinda occurs in VS Code as well.
Database creation works, but attempting to create a container fails.
I believe that this is an issue with the emulator itself.
I am using the latest build of the emulator version 2.11.13
Unfortunately I won't have enough time to investigate this issue in 0.21.0. Let's move it to the back log so we can publish 0.21.0 soon.