Why are my bulk operations failing in app development?

Topic summary

A developer encountered INTERNAL_SERVER_ERROR failures when running bulk operations in their Shopify app.

Root Cause Identified:

  • API version 2022-10 requires explicit Shopify approval for accessing customer data in bulk operations
  • Instead of providing a clear permissions error, the API returns a generic internal server error

Solution:

  • Switching to API version 2022-07 resolved the issue, as this version doesn’t have the same approval requirements

Related Issue:

  • Another developer reports similar bulk operation failures, but specifically when querying certain date intervals (e.g., updated_at:>='2018-08-19T00:00:00Z' AND updated_at:<'2018-08-24T00:00:00Z')
  • Jobs start successfully but eventually return 500 errors when polling status
  • Other date ranges complete without issues

The discussion remains open regarding whether the date-specific failures share the same root cause or represent a separate bug.

Summarized with AI on November 17. AI used: claude-sonnet-4-5-20250929.

Hello All,

I am developing an app with Bulk operations. However, i started to get below response for all operations that i started. Is there any problem with this endpoint?

{id: ‘gid://shopify/BulkOperation/1772968…681’, status: ‘FAILED’, errorCode: ‘INTERNAL_SERVER_ERROR’, createdAt: ‘2022-10-10T23:15:52Z’, completedAt: null, …}

Regards,

2 Likes

Anyone suffering same issue, it’s because API version 2022-10 requires Shopify approval on customer data and in bulk operations it’s giving internal server error instead of stating that.So switching to 2022-07 version was solution for me.

1 Like

How did you find that out? I’m experiencing a similar issue when using the bulk operations feature, except only with specific date intervals. Eg, if I use the query filter:

"updated_at:>='2018-08-19T00:00:00Z' AND updated_at:<'2018-08-24T00:00:00Z'"

Then the job starts successfully but I eventually get a 500 when polling the job status. For most other date intervals, the job completes all the way through.