Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Get-CosmosDbDocument - One of the input values is invalid #490

Open
4 tasks
donaldanixon opened this issue Jul 25, 2024 · 0 comments
Open
4 tasks

Comments

@donaldanixon
Copy link

Issue

  • Powershell 7.4
  • Visual Studio Code Powershell Extension
  • Windows 11
  • CosmosDB 5.0.0

Trying to run the following but keep getting the error "code": "BadRequest", "message": "One of the input values is invalid...."

$query = "SELECT * FROM c JOIN v IN c.vehicles WHERE (v.modelVariant = 'LFDAS')"
$documents = Get-CosmosDbDocument -Context $cosmosDbContext -CollectionId $containerName -Query $query -QueryEnableCrossPartition $true -MaxItemCount 5

I know the context is good because I can run the same code without the query and queryenablecrosspartition parameters and it works fine. It also fails when using just the query parameter as well. The query itself works in the Azure Portal and returns items there.

Any assistance much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant