You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.
Method FindAsync could not find record by Id value.
When I execute this line of code: var workflow = await _cosmosStore.FindAsync(command.WorkflowId, new PartitionKey("id"));
I'm getting error: Executed 'ProcessWorkflows' (Failed, Id=dd9ea974-a1b5-4475-a4da-583a20ea7f5b) [19.12.2019 08:40:20] System.Private.CoreLib: Exception while executing function: ProcessWorkflows. Microsoft.Azure.Cosmos.Client: Response status code does not indicate success: 404 Substatus: 0 Reason: ({ [19.12.2019 08:40:20] "Errors": [ [19.12.2019 08:40:20] "Resource Not Found" [19.12.2019 08:40:20] ] [19.12.2019 08:40:20] }).
When I execute this line of code: var workflows = _cosmosStore.Query(allowSynchronousQueryExecution: true).Where(w => w.Id == command.WorkflowId).ToList();
I'm getting one item. In both runs command.WorkflowId value is same.
I'm using 3.0.0-preview1 version.
The text was updated successfully, but these errors were encountered:
This line: var workflow = await _cosmosStore.FindAsync(command.WorkflowId, new PartitionKey("id"));
needs to be: var workflow = await _cosmosStore.FindAsync(command.WorkflowId, new PartitionKey(command.WorkflowId));
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
Method FindAsync could not find record by Id value.
When I execute this line of code:
var workflow = await _cosmosStore.FindAsync(command.WorkflowId, new PartitionKey("id"));
I'm getting error:
Executed 'ProcessWorkflows' (Failed, Id=dd9ea974-a1b5-4475-a4da-583a20ea7f5b) [19.12.2019 08:40:20] System.Private.CoreLib: Exception while executing function: ProcessWorkflows. Microsoft.Azure.Cosmos.Client: Response status code does not indicate success: 404 Substatus: 0 Reason: ({ [19.12.2019 08:40:20] "Errors": [ [19.12.2019 08:40:20] "Resource Not Found" [19.12.2019 08:40:20] ] [19.12.2019 08:40:20] }).
When I execute this line of code:
var workflows = _cosmosStore.Query(allowSynchronousQueryExecution: true).Where(w => w.Id == command.WorkflowId).ToList();
I'm getting one item. In both runs command.WorkflowId value is same.
I'm using 3.0.0-preview1 version.
The text was updated successfully, but these errors were encountered: