Skip to content

Not able to create a review via terminal #69

@JuttaStrickerei

Description

@JuttaStrickerei

I implemented the code according to the tutorial in the doucmenation and after step 5 I cannot create a review via the terminal. The create-review.ts workflow always throws the following error:

Product: Primary key(s) [id, handle] not found in filters
{
message: 'Product: Primary key(s) [id, handle] not found in filters',
name: 'Error',
stack: 'Error: Product: Primary key(s) [id, handle] not found in filters\n' + ...
\src\workflows\create-review.ts: [create-review -> use-query-graph-step (invoke)]',
__isMedusaError: true,
type: 'not_found',
code: undefined,
date: 2025-08-01T09:18:12.768Z
}

However the product_id and handle are correct since I retrieved them via the terminal. I also added the handle variable to the worklfows, but it still says that the product cannot be found. I also cleaned the project and also installed the dependicies new, run migrations and build process mulitple times, but the issue stills persists. I am not sure anymore where the issue could be. Thanks for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions