Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

Exceition: FindAsync returning Resource Not Found #120

Description

@indulismisins

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions