I've managed to use EF Core to create the following item in Cosmos:
{
"Code": "https://CokeURL.com/gbm330",
"Quantity": 1,
"StockItemId": "00000ff8-0000-0000-0000-000000000000",
"id": "https://CokeURL.com/gbm330",
"_rid": "-BdUAM1W389NAgAAAAAAAA==",
"_self": "dbs/-BdUAA==/colls/-BdUAM1W388=/docs/-BdUAM1W389NAgAAAAAAAA==/",
"_etag": "\"1e001ff0-0000-1100-0000-608004300000\"",
"_attachments": "attachments/",
"_ts": 1619002416
}
I need to remove it but it appears I need to read the item first. I've tried via Cosmos data explorer but clicking on the row gives the following error:
Failed to read item https://CokeURL.com/gbm330: Illegal characters ['/', '', '?', '#'] cannot be used in resourceId
I've also tried removing using EF Core but that throws an exception that looks like it's related to the SQL API:
Response status code does not indicate success: NotFound (404); Substatus: 0; ActivityId: 7e652a49-9813-4959-b55e-57b228231d6a; Reason: (The value 'dbs/Stock/colls/StockItemCode/docs/https://CokeURL.com/gbm330' specified for query '$resolveFor' is invalid. ActivityId: 7e652a49-9813-4959-b55e-57b228231d6a, Linux/10 cosmos-netstandard-sdk/3.11.4);
Is there another way to remove the item?
Thanks