I’m not sure if this is a usage problem or what but this query seems to have stopped working at some point and I’m not sure why, it works if I remove this field publishedOnCurrentPublication:
query get_products_for_current_publication() {
products(query: "product_type:'seed-packet'") {
edges {
node {
id
title
publishedOnCurrentPublication
variants {
edges {
node {
id
}
}
}
}
}
}
}
The JSON response looks like:
{'data': {'node': {'id': 'gid://shopify/BulkOperation/XXXXXXXXXXXX', 'status': 'FAILED', 'error_code': 'INTERNAL_SERVER_ERROR', 'created_at': '2025-08-17T18:00:17Z', 'completed_at': None, 'object_count': '0', 'file_size': None, 'url': None, 'partial_data_url': None}}, 'extensions': {'cost': {'requested_query_cost': 1, 'actual_query_cost': 1, 'throttle_status': {'maximum_available': 2000.0, 'currently_available': 1999, 'restore_rate': 100.0}}}}
What could I do to make this work?
Do you have the read_product_listing permission in order to read this field?
Could you try the publishedOnPublication field with your app id? 
Seems that I have read_product_listings in my scopes already. What do mean by the app id? You mean the publication id?
Using publishedOnPublication(publicationId: "XXXXXX") with a publication id seems to work. Maybe that could be a work around where I fetch the publications and lookup the correct id and then use that id.
Ah great! Glad it works, my suspicion was that because the bulk job is running it and not your app, that is why the is published on publication wasn’t working because the bulk runner thing isn’t a publication.
I agree that’s a bug
though in Shopify side
Happy to look in to this farther and see if this is a bug and get that submitted if it is.
When you test with a non-bulk operation, do you get any errors when you include the publishedOnCurrentPublication field?
If you can share the x-request-id from when you created the bulk query I can see if I can find out some more details that can help.
1 Like
Hey @dogowner , Are you still experiencing this issue?
The non-bulk operation returns a read-able error message. Something like “You don’t have a current publication id for this app". I wasn’t able to re-test it with the bulk operation because I just changed it to use an explicit publication id. So it is working for now.
1 Like