Hey @valdozzz - would you be able to share an X-Request-ID from the API response headers for an example where you’re seeing this error pop up? Any easy way to grab one of these is to use an API Client like Postman to replicate the issue and grab the request ID from the output response headers like this:
Hey @valdozzz - thanks for sharing those request IDs, really appreciated! I did some testing on my end, and can confirm this is actually expected behaviour (although the generic internal server error message isn’t the most ideal for sure).
Right now, the customerSegmentMembersquery can only be run as part of a specific async mutation (not as a bulk operation at the moment, unfortunately):
That should allow you to create and return the info you need though. Let me know if this works for you or if I can clarify anything on my end here
Thanks a lot for clarifying!
Just to double-check — is this limitation for all queries, or only for those that use filters like product_purchased with the tag filter?
Because for other segments, the flow and the bulk operation seem to work correctly on my end.
Hey - thank you for clarifying too. I actually did some double checking on my end and ran a similar query on my test shop and was actually able to run the bulk operation successfully as well. Here’s the code I used to build the segment:
FROM customers
SHOW customer_name, note, email_subscription_status, location, orders, amount_spent
WHERE products_purchased MATCHES (
tag CONTAINS 'ARGruppo1_PROFUMI',
date > -6m,
quantity >= 2
) AND orders_placed MATCHES (
amount >= 100,
date = -6m
)
I think this is close to what you had used. Can you let me know what happens when you run the async CustomerSegmentMembersQueryCreate mutation? Does the output generate for you? Just trying to narrow down and see if there’s potentially something happening with the output data itself, since I can confirm that the Bulk Operation query should work now after doing some testing on my end.
Hope to hear from you soon, we’ll get this looked into.
Hey @valdozzz , thanks for trying that, glad that it runs the customerSegmentMembersQuery mutation. Would you be able to share an x-request-id for the output for that mutation as well if possible?
I think there may be an issue with the data being returned by the segment itself, and just want to compare the two outputs (the bulk operation and the async mutation). My thinking is that your original bulk operation query should work, but there may be an issue with the data itself, so you wouldn’t necessarily have to create the async query first and then integrate into the bulk operation.