#Sales channel [id] is not associated with any stock locations

5 messages · Page 1 of 1 (latest)

terse swallow
#

I am wrting integration tests for the flow user add carts.
when I trigger addToCartWorkflow inside integration test, it throws Sales channel [id] is not associated with any stock locations
but when I check stock locations vs sales channels, they are already linked.
[{"id":"sloc_01JKX9FN8B299P5JVY2MDP5CFS","sales_channels":[{"id":"sc_01JKX9FN72R1791NASHD7W6X0W"}]}]
error message: Sales channel sc_01JKX9FN72R1791NASHD7W6X0W is not associated with any stock locations.

This is pretty weird and wanna get a help to fix this issue asap.

karmic flame
#

you should link relation in table sales_channel_location

boreal granite
#

in topic you can see how to avoid this behavior

#

If you can't get around this in your use case, you just have to wait for the developers to fix it. You can leave a comment and raise the topic to speed this up