---
title: "Resolving \"Not acceptable format: json\" error (HTTP code 406) in batch operations"
date: "2022-02-24T00:46:00+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/94566-resolving-not-acceptable-format-json-error-http-code-406-batch-operations"
id: "6670d216-fa97-4c42-a900-d2cc831a0976"
---

Some batch operations in Drupal, such as Solr search re-indexing or database updates may result in in an HTTP Error Code 406. A typical error looks like this:

    An AJAX HTTP error occurred.
    HTTP Result Code: 406
    Debugging information follows.
    Path: https://www.example.com/batch?id=12345&op=do_nojs&op=do
    StatusText: Not Acceptable
    ResponseText:
    
    {"message":"Not acceptable format: json"}

If you have Acquia Cloud Edge powered by Cloudflare (or a standalone Cloudflare account), try adding the following page rule to your Cloudflare configuration:

1.  Set the URL to match the following, replacing your domain: `*example.com/batch*`
2.  Then add the following settings:
    *   Cache Level: Bypass
    *   Query String Sort: Off
3.  Set this as the first rule that applies, so that something that applies more generally doesn't apply to it first.

If that does not resolve your issue, please [contact Acquia Support](/node/55874) to see if we can help further.