Comments (5)
Ok, so the fix is when you are creating a container in the portal, make sure the partition key is set to /Item.
You will need to create the database and the container manually.
from labs.
Hi Daniel,
Unfortunately that didnt work for me. Do you have any other solution.
If I dont pass the partionkey to the CreateItemAsync method. It works. But I wanted to make work with passing Partitionkey
Matt
from labs.
One more thing, I get only the exception reason code as "Response status code does not indicate success: 400 Substatus: 1001 Reason: ()."
from labs.
Hey Mathews,
Is your reason blank in the error code?
You might need to do /YourPartitionKeyNameHere.
If that doesn't work, do you have a snippet of code?
from labs.
Thanks Daniel for reaching out. I figured out the weird scenario. my partition key was defined as /PostCode which throws error while the Partition key /Postcode works. Not sure why MS is so particular abt case.
Note : On container it was defined as /Postcode
from labs.
Related Issues (20)
- Problem with students.json file HOT 1
- Lab 2: Querying an Azure Cosmos DB Database using the SQL API :Error HOT 3
- 05-troubleshooting_failed_requests is not up to date
- Broken due to required partition key change in Cosmos DB HOT 1
- Benchmarks in lab 02 failed with ServiceNotAvailableException HOT 2
- JDK/JRE download location in Java Labs HOT 2
- Lab 4: transaction blob object not available HOT 1
- LangVersion in .NET Core projects HOT 4
- Unable to access blob storage lab - Lab 2 HOT 2
- Update Instruction to include registration of CosmosDB HOT 1
- Probably a little typo in the Indexing Policy JSON HOT 1
- Setup of Cosmos Containers can be prohibitively expensive HOT 1
- Not getting data based on child node from query method
- Question on Cosmos db gremlin api
- Cosmos db
- Azure Cosmos DB Query Playground doesn't work anymore
- Import lab data into container using ADF
- Data not being fetched with custom query using '@Query' annotation
- IndexOf method not found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labs.