Diagnose a CKAN CSV and DataStore column mismatch
Compare a CKAN resource’s CSV headings with its DataStore fields when an existing virtual table can no longer read the source.
Use this check when an existing CKAN virtual table stops loading after the publisher changes a CSV resource. A CKAN portal can offer both a downloadable file and a DataStore table for the same resource. Mainbase can report a read error when the active DataStore fields can no longer be matched to the virtual table’s saved source fields.
Compare the two sources for the same resource
- Open the exact resource on the publisher’s public CKAN portal. Check the resource name and any release date, and copy the resource ID from its page address. On the portal’s host, open
/api/3/action/resource_show?id={resource_id}with the actual ID. Confirm thatresultdescribes the intended CSV and checkdatastore_active. CKAN Action API reference - If
datastore_activeistrue, open/api/3/action/datastore_search?resource_id={resource_id}&limit=0on the same portal. Inresult.fields, note each field’sid. CKAN’s internal_idis separate from the CSV headings. CKAN DataStore reference - Open the CSV linked from that same resource and compare its headings with the fields your table was created with. If DataStore is active, compare its field names too. Look for renamed or missing columns, or multiple headings that would match one DataStore field.
Verify the table after a correction
- If the CSV and DataStore differ, give the publisher the resource ID and the affected headings so it can check the published file and DataStore together. Reopen the existing Mainbase table after the correction and verify a known record.
- If the publisher has intentionally replaced the resource or changed its columns, review that edition through the CKAN virtual table setup. In Select Resource, confirm the intended file. In Preview Data and Map Fields, check the new headings and map the fields you need. Check the saved table as well. A new preview may read the downloadable CSV while the existing table still expects its original source fields.
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy 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?