Fix a CKAN connection that cannot find the portal API

Find the portal address that serves CKAN dataset search, then test it before saving the connection.

A public CKAN dataset can open in your browser while the address you entered points to a dataset page or a different part of the publisher’s site. Mainbase tests the CKAN dataset search API when you connect the portal.

Find the address that returns catalogue data

  1. Open the publisher’s catalogue and identify the portal address. Start with the public CKAN site address. If its API is hosted under a path such as /data, keep that path.
  2. Add /api/3/action/package_search?rows=0 to that address. For example, try https://data.example.org/data/api/3/action/package_search?rows=0 for a catalogue hosted under /data. A usable response contains success: true and a numeric result.count. The results list should be empty for this request. CKAN Action API reference
  3. If the address opens a web page or returns a missing-page error, check the publisher’s CKAN API instructions for the correct base address. If the response says you need access, confirm that the publisher exposes public dataset search.

Test the connection and its dataset

  1. In workspace settings, open CKAN Connector → Add Connection. In CKAN Portal URL, enter the verified address before /api/3/action/package_search. Select Next to run the test.
  2. Once the test succeeds, save the connection. Open Create Virtual Table from its actions menu and verify that you can find the intended dataset in Search Datasets. Then choose the resource and check its preview. The connection test verifies catalogue search. The resource preview checks the file or data you intend to use.

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?