How-To

Keap REST API error in Qlik: total records field not found

Qlik raises this error when offset pagination is on but the Total field path points at nothing in the Keap response. Check the raw JSON, then set the path to the real total field or switch to Next URL pagination. The thread behind this error was never resolved, so verify each step against your own response.

Sohail HussainSohail Hussain8 min read

Short answer

  • The Qlik REST connector is set to Offset pagination but cannot find a total-record number in the JSON that Keap returned, so call the endpoint once outside Qlik and put the exact name of the total field in Total field path.
  • If the response has no total, switch the pagination type to Next URL and point it at the next-page field you see in the raw response.

You pulled contacts from Keap into Qlik and got only 1,000 rows, or the load stopped with this:

Connector error: Field containing total records in the current source was not found. Please provide path to the correct field in the Pagination parameter 'Total field path.'

Keap is not rejecting your request. The failure happens inside the Qlik connector after Keap has already answered.

The only source for this problem is a Qlik community thread from July 2021 that ends without a confirmed fix. People there report two symptoms: only 1,000 rows coming back, and this error once offset pagination is turned on. The steps below come from how offset pagination works in the Qlik connector, not from a vendor-confirmed answer. Treat the Keap response examples as illustrations, and confirm field names and paging rules in Keap's developer documentation, because the API may have changed since 2021.

Why it happens

Offset pagination asks for rows 0 to 999, then 1000 to 1999, and so on, until the offset passes a total. Qlik has to know that total, so it reads it from a field in the response. Total field path tells it where to look. Causes, most common first:

  1. The path points at the wrong thing. Common slips are naming the records array instead of the number, adding a leading slash or a $. prefix the connector does not expect, or a case mismatch. Paths are case-sensitive.
  2. The field is nested. If the number sits under another object, the path needs the full route from the response root, for example meta.total.
  3. The endpoint returns no total. Some endpoints return a bare array or use a different paging scheme, so no field name can satisfy the setting.
  4. You are calling a different API version than you assume. I have not verified how Keap's newer v2 endpoints paginate. They may use a page token instead of offset plus a total; check the URL path (/crm/rest/v1/ or /crm/rest/v2/) and the response shape rather than relying on my guess.

The "only 1000 rows" symptom most likely has the same root: without working pagination, you receive just the first page of results. The page size itself is something to confirm in Keap's documentation for your endpoint.

Step-by-step fixes

1. Look at the raw response first

Call the endpoint once outside Qlik (curl, Postman, or the connector's own test with pagination off) and read the top level of the JSON. A list response may look something like this. This is an illustration only; your field names come from your own response:

{
  "contacts": [ { "id": 1 } ],
  "count": 4521,
  "next": "https://api.infusionsoft.com/crm/rest/v1/contacts?limit=1000&offset=1000",
  "previous": null
}

You are looking for two things: a number that represents the total, and a URL or token that points to the next page. Confirm which of them exist on the endpoint you are calling before you touch connector settings.

2. Set Total field path correctly

In the REST connector's pagination settings, with the type set to Offset:

  1. Set the offset parameter name to the one your endpoint uses (in the example above, offset).
  2. Set the count (page size) parameter name the same way (in the example, limit).
  3. Set the page size to the maximum the endpoint allows, or lower if you prefer.
  4. Set Total field path to the exact name of the total field from your raw response. Use the full dotted path if it is nested.
  5. Reload the data and compare the row count with the number shown in Keap.

3. Switch to Next URL pagination

If there is no usable total, this is the option I would pick, since it does not need one.

  1. Change the pagination type to Next URL.
  2. Point the next-URL field path at the field that holds the next-page link in your raw response.
  3. Reload. Qlik follows each returned link until the field is empty.

The trade-off is that you depend on Keap's next link being well formed on every page. If your load loops because the last page returns something other than an empty value, go back to offset with a total.

4. Try token-based pagination if the response carries a token

If the raw response contains a next-page token rather than a total or a next URL, choose Qlik's token-based pagination type. Map the token field from the response and the request parameter that sends it back. Take the exact parameter names from the Keap developer documentation for that endpoint.

Which cause do you have

What you see in the raw responseFix
A numeric total at the top levelOffset, Total field path set to that name
A total nested in an objectOffset, full dotted path such as meta.total
A next-page URL but no usable totalNext URL pagination
A next-page token fieldToken-based pagination
A bare array with no metadataNeither works; page manually with a loop on the offset

Do not point the path at the array

Total field path must lead to a single number. Naming the records array is the most common reason the error persists after you have set the field.

Checklist before you reload

  • The raw response was read outside Qlik, with pagination off.
  • The endpoint URL path (v1 or v2) matches the pagination type you chose.
  • Total field path matches the field name exactly, including case, with no $. prefix or leading slash.
  • Offset and limit parameter names match what the endpoint expects.
  • The page size does not exceed what the endpoint allows.

If the row count is still wrong

Compare against a Keap export. If the counts differ after pagination works, the cause is often the table mapping: how Qlik flattens nested arrays can drop or multiply rows, and that is separate from pagination.

If a long paginated reload fails partway with an authorization error, check whether your access token expired during the run and refresh it before the load. If you see HTTP 429 responses, reduce the number of calls with a larger page size, and add a delay between calls if the connector allows one.

Test with a small page size

Set the page size to 2 or 3 for a first test. If the load stops after the first page or repeats it, you see the pagination fault immediately instead of waiting on a full reload.

If nothing works

Contact Keap's developer support for questions about response shape and limits, or Qlik support for connector behavior. Send them:

  • The exact error text, with the time of the failed reload.
  • The endpoint URL, with no tokens or keys.
  • The first 20 lines of the raw response, with personal data removed.
  • Your pagination settings from the connector.
  • What you already tried: Offset, Next URL, token.
Subject: REST connector pagination fails against a Keap endpoint

Hello,

My Qlik REST connector loads from {endpoint-path} on the Keap REST API and fails with:
"Connector error: Field containing total records in the current source was not found. Please provide path to the correct field in the Pagination parameter 'Total field path.'"

Without pagination I get only the first 1,000 rows. The top level of the raw response contains: {field names you saw}.
Settings tried: Offset with Total field path "{value}"; Next URL with "{value}".
Redacted response sample attached. Which pagination scheme does this endpoint support, and which fields carry the total or the next page?

Thank you

Common questions

Why do I only get 1,000 rows from Keap in Qlik?

Users report this when pagination is not working, so the connector receives only the first page. Once it can read a total or a next-page pointer, it can fetch the rest.

Is the total field always called count?

No. The name depends on the endpoint and API version, so read it from your own raw response. Some endpoints nest it or omit it.

Can I skip the total and still page through everything?

Yes, if the response has a usable next URL or token, since those pagination types do not need a total. If the response has none of these, you need a manual loop on the offset.

Is there a confirmed fix from Keap or Qlik for this error?

Not that I could verify. The 2021 community thread ends without one, so the steps above are a diagnosis from how the connector works.

technicalkeaperror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

How-To

ActiveCampaign n8n error 301 on create contact: causes and fixes

A 301 from the ActiveCampaign node means the request went to a URL that redirects, so start with the API URL in your n8n credential. Copy it from Settings, then Developer, and check the scheme and path. Zapier 403 and cURL error 28 behind Cloudflare have different causes, covered below.

Sohail Hussain|9 min read
How-To

"Stage not on allowlist": Apollo to HubSpot sync fix

The error "Stage not on allowlist" means the contact's Apollo stage is not on the list of stages permitted to push to HubSpot. Open the HubSpot integration in Apollo, go to the Sync tab, and add that stage under "Stages for push contacts". Lifecycle stage mapping is a separate setting.

Sohail Hussain|7 min read
How-To

Salesmate "Authorization with Gmail failed": Gmail IMAP fix

Salesmate shows "Authorization with Gmail failed" when it can't read your Gmail account over IMAP. In Gmail settings, enable IMAP, choose "Do not limit the number of messages in an IMAP folder", and show All Mail in IMAP. Then reconnect the account in Salesmate. Other causes are covered below.

Sohail Hussain|8 min read
How-To

AWeber export "Stop Status" and "Stop Time" columns explained

In an AWeber subscriber export, a non-empty Stop Time and a non-zero Stop Status most likely mean the person has stopped receiving your mail, usually because they unsubscribed. AWeber doesn't explain the columns in the file, so verify against a few known unsubscribes, then import those rows as blocked, not subscribed.

Sohail Hussain|7 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free