The problem
An old integration built on the XML API (API_DoQuery, API_AddRecord, API_ImportFromCSV and so on) starts failing in strange ways: unhandled exceptions, retries that never stop, or errors swallowed by an HTTP client that throws on anything other than 200.
Why it happens
Historically, Quickbase’s XML APIs returned HTTP 200 even when a request failed. The real result was in the body, in <errcode> and <errtext>. An optional X_QUICKBASE_RETURN_HTTP_ERROR header let integrators opt into a 400 on errors.
Starting in February 2025, Quickbase began changing the XML APIs to return HTTP status codes based on the Quickbase error code by default, without needing the header. It rolled out in waves. Wave 1 covered error codes 5, 7, 9, 10, 12, 14, 19, 23, 27, 37, 60, 70, 73, 76, 100, 102, 110, 112 and 113, with later waves following.
Code written for the old behavior often:
- Uses an HTTP library that throws on non-2xx, before your errcode parsing ever runs.
- Retries every non-200 as if it were a network failure, hammering the API on permanent errors (bad query, missing field, no permission).
- Logs “HTTP error” and drops the body, losing the actual
errcodeanderrtext.
The fix
- Find every XML API caller. Search your code for
API_andQUICKBASE-ACTION, and check scripts, scheduled jobs, ODBC tools and old code pages. - Read the body on errors too. Treat a non-2xx response as “parse the XML and read errcode”, not as an opaque failure:
const res = await fetch(url, { method: 'POST', headers, body: xml });
const text = await res.text();
const errcode = Number((text.match(/<errcode>(\d+)<\/errcode>/) || [])[1] ?? -1);
if (!res.ok || errcode !== 0) {
const errtext = (text.match(/<errtext>([\s\S]*?)<\/errtext>/) || [])[1];
throw new QuickbaseError(res.status, errcode, errtext); // decide retry vs. fail on errcode, not on status alone
}
- Only retry what’s retryable. Rate limits and temporary server errors, yes. Permission, syntax and missing-field errors, no.
- Buy time if you need it. Sending the header
X_QUICKBASE_RETURN_HTTP_ERROR=falsekeeps the old always-200 behavior while you update the code. Treat it as a stopgap, not the fix.
How to prevent it
Move new work to the RESTful API, which uses standard HTTP status codes and JSON. For anything still on the XML API, keep one shared wrapper that handles errors in a single place, so the next platform change is one edit, not twenty.