I copy and pasted your index policy into the portal and it worked fine. There's nothing wrong with it. If you continue to get this error you may want to raise a support ticket.
Thanks.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm having an issue creating a composite index on a nested field in our collection. Is this even possible?
{
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [
{
"path": "/*"
}
],
"excludedPaths": [
{
"path": "/\"_etag\"/?"
}
],
"compositeIndexes": [
[
{
"path": "/field1",
"order": "descending"
},
{
"path": "/form_data/field2",
"order": "ascending"
}
]
]
}
when I try to save the policy, I get the following error.
Failed to update container MyContainer: {"code":400,"body":{"code":"BadRequest","message":"Message: {\"Errors\":[\"The indexing path '\/form_data\/field2' could not be accepted, failed near position '16'. Please ensure that the path is a valid path. Common errors include invalid characters or absence of quotes around labels.\"]
I copy and pasted your index policy into the portal and it worked fine. There's nothing wrong with it. If you continue to get this error you may want to raise a support ticket.
Thanks.