How to validate tabular data in CKAN with Frictionless
ckanext-validation checks uploaded tabular resources against Frictionless Table Schema rules, produces a Frictionless report of the errors it finds, and can block the upload when that report contains errors. For a portal team that accepts CSV or Excel files from many publishers, this is the control that keeps a malformed file from becoming a published resource. For example (illustrative), one publisher renames a column header, another mixes date formats in a single column, and a required identifier is left blank. Each change breaks every downstream user who filters or joins on that column, and none of them is visible in the dataset's title or description. The team's task is to decide which files must pass before publication, write the schema they are checked against, and agree who owns that schema when a publisher's data legitimately changes.
Use row-level validation when people will analyze the files directly, when publishers upload into the portal themselves, and when a change in column type or code list would silently break consumers. Metadata-only checks are enough when the portal mainly catalogs files hosted elsewhere, when a reviewer inspects each file by hand before release, or when the data is small and stable enough for that review to be reliable. Most teams combine both: metadata rules such as required titles, licenses and owning organizations apply to every dataset, while Table Schema checks cover the resource types that feed dashboards or APIs. Before you commit, confirm in the extension documentation how a schema is attached (per resource, per dataset or per dataset type), which spreadsheet formats it accepts, and which error types block an upload and which only appear in the report.
Confirm compatibility before you plan anything. ckanext-validation does not support CKAN 2.10 or 2.11. CKAN 2.12.0 was released on August 26, 2026, together with maintenance releases 2.11.6 and 2.10.11 on the same day, but CKAN's own release does not show whether this extension has been tested on 2.12. Check the extension's repository and release notes for a version that supports 2.12 before you scope any work. If your portal runs 2.10 or 2.11, you have three paths: upgrade to a CKAN version the extension supports, which is a version move with its own testing and possible backwards-incompatible changes between minor releases; keep the current version and enforce checks in the publishing workflow outside CKAN; or run metadata-only controls until compatibility is confirmed. CKAN's release policy keeps the previous minor version supported for security and bug fixes, so a 2.11 portal may be on a supported line even though this extension is not available to it.
A blocked upload returns for correction before anything reaches storage
The path starts when a publisher uploads a tabular file through the CKAN web app. The web app passes the file and its Table Schema to the Frictionless validation step, which produces a report. A pass sends the resource to portal storage. A block returns an error report, and the reviewer correction loop handles the fix and resubmission. The input box marks the trust boundary: nothing from user input reaches storage until the checks pass.
Blocked uploads return to the reviewer before any resource reaches portal storage.
Validation options and when each one fits
This table compares the four decisions a portal team makes when adding Frictionless checks to CKAN, with what each option protects, what it costs publishers, and what to confirm with the extension maintainers. Check the version rows first, because the extension's supported CKAN versions decide which of the other options you can use. Most portals combine one blocking mode, one schema pattern and one timing.
| Option | What it protects | Publisher friction | Confirm before choosing |
|---|---|---|---|
| Block uploads on error | Bad files stay out of the portal, so a published dataset passes its schema. | Publishers must fix every error before saving, which slows uploads of messy legacy spreadsheets. | How the extension behaves in your CKAN version, and whether an admin can override a block. |
| Report errors only | Publishers keep working, and the Frictionless report stays visible for review. | Low at upload, but someone must watch reports and chase fixes after publication. | Where the report appears to users and whether it persists after the file is replaced. |
| One schema per dataset | Each file is checked against the exact columns and types its publisher documented. | Every new dataset needs schema work from the publisher or a data steward. | How a schema attaches to a resource, and whether it can be copied between datasets. |
| Shared schema for a dataset family | Recurring exports, such as monthly series, get one consistent definition. | Low per dataset, but one schema change can break uploads for every dataset that uses it. | Whether schemas can be referenced by file or URL, and who may edit them. |
| Validate at upload | Errors are caught while the publisher still has the file and can fix it in the same session. | Adds a wait at upload, and very large files may hit slow or timed-out checks. | Expected validation time for your largest files, and whether checks run synchronously. |
| Validate in a later batch job | Uploads stay fast, and checks can cover the whole catalog on a schedule. | Problems surface days later, and the dataset may already be public. | Whether the extension offers a batch or command-line check, and where results are stored. |
| Run the extension on a supported CKAN version | A tested pairing of CKAN and the extension, so behavior matches the maintainers' documentation. | The extension does not support CKAN 2.10 or 2.11, so this path may mean upgrading first. | Which CKAN versions the extension lists as supported, and the upgrade path for your other extensions. |
| Hold validation until the extension supports your version | Avoids running an untested extension combination on a production portal. | No table checks in the meantime, so manual review or a stopgap must cover bad files. | The current compatibility statement, and whether support for CKAN 2.12.0 (released August 26, 2026) is planned. |
The decisions the CKAN version forces today
Every route to validated tabular data in CKAN depends on which CKAN minor release the portal runs. ckanext-validation does not support CKAN 2.10 or 2.11, so the choice is between staying on a version the extension supports, moving to 2.12 and waiting, or adding checks outside the extension. Review the release policy and the extension's status before you schedule any upgrade.
Stay on an older release
Staying on an older CKAN release only works if ckanext-validation supports that version, which you must confirm in the extension's compatibility notes. Under the CKAN release policy, the project supports the latest patch of the current minor and the previous minor, so an older release receives no further upstream security or bug fixes. Check the Python, PostgreSQL and Solr versions that release needs, since those may also constrain your options. Weigh that exposure against the work of moving forward.
CKAN release policyMove to CKAN 2.12
Moving to CKAN 2.12 puts the portal on the current minor release, published on August 26, 2026. Minor releases may include backwards-incompatible changes, so review the release notes and test your custom schemas, extensions and templates on a copy first. Do not treat the core upgrade as proof that ckanext-validation works on 2.12. Confirm the extension's status with its repository before you schedule the move, and plan for a gap in validation if support arrives later.
CKAN releasesBuild checks outside the extension
Table Schema checks can run as your own code, for example a script or job that validates each file before a dataset is published. This keeps the portal off an extension release, but you then own the validator, its schema versions and the report format. Decide where results live, who sees a failed check and whether publication is blocked or only flagged. Test the job against files with known errors, and revisit it at each CKAN upgrade, because the upload path it hooks into can change between minor releases.
Gate publication with a separate service
A standalone validation service sits in front of publication, so every upload path, including bulk loads, passes the same checks. Its value depends on the contract: the service must return the Frictionless report, hold or reject the dataset, and log who overrode a result. Ask who runs its uptime, how it is patched, and what happens to a publisher when the service is down. Keep the CKAN API credentials held by that service scoped to the write actions it needs.
Accept manual review for a period
Manual review is the fallback when no automated check is trusted yet. Reviewers open each resource, compare it with the publisher's schema, then approve or return the dataset, so the quality of validation depends on reviewer consistency and turnaround. Write a checklist that reviewers follow, record each decision with a reviewer name and date, and set an exit point tied to the upgrade or extension decision. Expect the queue to grow with every new publisher.
Keep patch releases current
Patch releases do not break backwards compatibility and exclude schema changes and new features, so they are the lowest-risk changes on the portal. Under the release policy, outdated patch releases lose support once a newer patch is out, so a portal that delays patching on 2.11 or 2.10 risks running unsupported code. Keep a staging copy current so a patch can be tested and applied within the same change window. Patching does not add validation to the portal, so do not count it as a fix for the extension gap.
Setting up validation and proving that bad files are blocked
This sequence takes a CKAN test environment from version checks to proof that invalid tabular uploads are refused. Each step closes with a check you can repeat, so the team can show a security or data governance reviewer the blocking behavior and the error report before any publisher uses the portal. The same checks run again after a CKAN patch upgrade.
Confirm CKAN and extension versions
Build or clone a non-production CKAN instance that matches your production stack, then record the exact CKAN version, the ckanext-validation release and the Python and Frictionless packages it pulls in. The extension does not support CKAN 2.10 or 2.11, so check the extension's current compatibility statement against the CKAN version you plan to run before you install anything. Save the version output in the project notes. Done when the version record names one CKAN release and one extension release that the extension's documentation lists as compatible.
Write and version-control Table Schema files
Write one Table Schema file for each tabular dataset type the portal accepts, describing field names, types, formats, required constraints and primary keys. Keep the files in the same repository as your extension code, so changes go through review like any other code. Validate each schema file with the Frictionless tooling before any dataset refers to it. Done when every schema file passes a standalone validation run from the command line and the commit history shows who changed each one.
Install and configure the validation step
Install ckanext-validation in the test environment's Python virtual environment, add it to the plugins list in the CKAN configuration file, and set the validation options your team chose, such as which resource formats are checked. Run the database and migration commands the extension documents, then restart the web and worker processes. Done when CKAN starts without plugin errors and a resource upload to a test dataset shows a validation status on the resource page.
Load known-good and known-bad sample files
Prepare a small set of sample CSV files: some that satisfy the Table Schema and some that break it in specific ways, such as a wrong type in one column, a missing required field, a duplicate key and an extra column. Label each file with the rule it tests, and keep the files in version control next to the schemas. Upload each file as a resource to a test dataset under a publisher account. Done when the good files are accepted and each bad file is logged in your test record with the rule it breaks.
Confirm the blocking message and error report
Check what a publisher sees when a bad file is uploaded: the resource should not be published, the message should appear in the form, and the error report should list the failing rows, columns and rule types. Compare each report with the expected error for its sample file, and confirm that a bad file cannot be reached through the dataset's resource download link or through the API for the same resource. Done when every bad file produces the expected block and report, and the screenshots and API responses are saved as evidence.
Repeat the tests after a CKAN patch upgrade
Apply the latest patch release of your CKAN minor version in the test environment, following the CKAN release policy. CKAN patch releases are meant not to break backward compatibility and exclude schema changes and new features, but validation behavior is still a separate check. Rerun the good and bad sample files, the blocking checks and the version record, then compare the results with the evidence from the first run. Done when the results match the earlier run and the version record shows the new CKAN patch. Repeat this test before each production patch.
What blocking uploads means for publishers and portal staff
The core decision is whether a file that fails its Table Schema checks should be rejected at upload or accepted with a visible warning. Strict blocking keeps invalid files out of the DataStore and out of downstream reuse, which matters most for datasets that feed dashboards, APIs or reporting obligations. The cost is friction: a publisher with a large file and one bad date cannot publish until the file is corrected, and staff should expect a burst of rejections in the first weeks. A warning workflow publishes faster but leaves bad data in circulation unless someone reviews the warnings on a schedule. Before choosing, confirm in your own environment whether ckanext-validation can apply blocking per dataset type or per organization. A single portal-wide switch forces the same answer on every publisher, including those whose datasets carry little downstream risk.
Blocking only helps if the person who fixes the file learns why it failed. Many publishers submit through a staff member, a harvester or a script and never open the portal's interface, so the failure has to reach someone who acts on it. Confirm in your version of the extension where a validation failure appears: on the upload form, in the API response to the calling tool, in the server logs, or in a notice to the dataset's contact. Then test each path with a deliberately broken file and record exactly what the publisher would see. If the only record is a server log, plan a notification step owned by portal staff, because no one outside the operations team will read it. Do not assume a particular error layout until you have seen it in your own build, and write your publisher guidance from that observed output.
Schema ownership decides whether blocking stays fair as formats change. Portal staff usually own the schema itself, including its version, its required fields and the rule for when a new version applies. Publishers own the data and the timing of their corrections. When a format evolves, for example when a column is renamed or a date format changes, decide in advance whether existing resources are revalidated, whether they stay valid under the old schema for a stated period, and who tells affected publishers. Keep schema files in version control so each change can be reviewed and traced. Also record the CKAN version the extension was tested against, because ckanext-validation does not currently support CKAN 2.10 or 2.11. A portal that plans a CKAN upgrade needs to settle schema ownership and the extension's compatibility together.
Security and operations for validation in a live portal
Validation runs on files that anyone with upload rights can send, and it runs on the same servers that serve your portal. The five areas below decide whether a blocked upload stays a clean error or becomes an outage, a data exposure or a silent change to what counts as valid.
Untrusted files of any size
Anyone who can upload a resource can send a file of any size, encoding or structure, so treat every file as hostile input until validation has finished. Check the size limit at the web server (Nginx client_max_body_size in a standard setup) and in the application server in front of CKAN before you rely on the extension to reject oversized files. Test with deliberately malformed samples: a broken CSV quote, mixed encodings and a file with many empty lines. Ask the extension's maintainers whether it loads the whole file into memory and what the report says when parsing stops early.
Capping resource use
Validation spends CPU and memory on whichever worker runs it, so one heavy file can slow other background jobs on the same host. Set memory and CPU limits on the worker host or container, and keep those workers separate from the processes that serve pages. Decide how long a single validation may run before the job is stopped, and confirm whether the extension exposes that timeout or whether you must set it in your process manager. Measure memory during a test run with your largest accepted file.
Schemas under change control
A Table Schema file decides which uploads pass, so every edit is a policy change. Keep schema files and validation settings in version control, review changes like code, and promote them through the same environments as the rest of the portal configuration. Record which schema version validated each resource, so a publisher or auditor can see why an upload was accepted or blocked. Confirm whether changing a schema re-checks resources that are already published.
Retention for rejected uploads
A Frictionless report on a rejected file can quote cell values, so rejected uploads can hold personal data from the file's rows. Decide what the portal writes to application logs, what appears in the report shown to the publisher and how long each copy is kept. Set retention periods in the logging platform and in any storage that holds reports, and document them for the people who handle data protection requests. Confirm with the extension which parts of a report are stored.
Restarts during validation
A web server or worker restart can interrupt a validation in progress, and the outcome depends on where the job was when it stopped. Test this in staging: start an upload, restart the worker, then restart the web server, and check whether the publisher sees an error, a stuck pending state or a finished result. Confirm how queued jobs are held in Redis and whether a restarted worker picks them up again. Document the recovery step, such as re-upload or re-queue, so support staff can act without database access.
Install from source guideQuestions buyers ask about CKAN Frictionless validation
Does ckanext-validation run on the CKAN version we use?
No, not on the CKAN lines the extension currently supports. ckanext-validation does not support CKAN 2.10 or 2.11, so a portal on either line must change version before it can use the extension, or run a fork that your team tests and maintains. CKAN 2.12.0 was released on August 26, 2026, together with maintenance releases 2.11.6 and 2.10.11. The CKAN release policy supports the latest patch of the current minor version and the previous minor version, so 2.11 is the previous line today and 2.10 sits outside that window. Confirm in the extension's repository whether it supports 2.12 before you plan, because that answer decides whether the CKAN upgrade and the validation work form one project or two.
What drives the cost of a CKAN validation project?
The main cost drivers are the number of schemas, the CKAN version you start from, and how many publishers and file types the checks must cover. Fixed-scope engagements are agreed in writing before work starts, so the quote follows from a written scope. One-time work includes the schema review, the Table Schema definitions, the validation rules for blocking uploads, the test cycles and the documentation for your reviewers. Recurring work includes extension updates, schema changes as policy shifts, and retesting after each CKAN patch. Costs rise when source files are inconsistent, when reviewers are slow to answer, or when an upgrade to a supported CKAN version is required first. Ask each quote to split those lines separately, and to state which party pays for the test environment and for any fork maintenance.
How long does a validation project take with many schemas?
Duration depends mainly on the number of schemas, how much each one needs to be agreed with its data owner, and whether the portal must move to a supported CKAN version first. Timelines come from the written scope, so ask for a schedule with milestones for each schema group and each upgrade step. Each schema adds a cycle of drafting the Table Schema, running sample files through Frictionless, reviewing the error report with the publisher and fixing the upload rules. Schemas that share fields, such as a common date or identifier format, can be reviewed together and shorten the work. An upgrade path adds its own phases: a test instance on the target CKAN version, a plan for extension and theme changes, and a rehearsal before production. Ask how many review rounds the quote includes, since reviewer response time often sets the pace.
What upgrade path should a portal on CKAN 2.10 or 2.11 take?
Start with the release notes for each minor version between your current line and the target, because minor releases may include backwards-incompatible changes. Patch releases do not break backwards compatibility and exclude schema changes and new features, so they fit routine maintenance. Inventory every installed extension and confirm its version for the target release, recording any that have no compatible version. Check hosts against the install guide, which lists Python 3.10 or newer, PostgreSQL 12 or newer, and Solr 9 (recommended) or Solr 8. Treat the validation extension as a separate test item until its compatibility is confirmed, and freeze schema changes during the move so the rules are tested against one known configuration.
What must our team provide before a validation project starts?
Your team provides the sample files, the current schema or data dictionary for each dataset type, a test CKAN environment that matches production closely enough to trust results, and named reviewers with authority to accept rules.
- Representative sample files: valid files, known-bad files and edge cases such as empty cells, mixed date formats and renamed columns.
- Written schema decisions: which fields are required, which values come from pick lists, and what happens when an upload fails.
- Access and change control: accounts for the test environment, a way to load sample resources, and a named person who approves changes to the rules.
Ask the partner to list each input with the date you must provide it, because each late input delays every schema that depends on it.
Can an internal team run CKAN validation without an outside partner?
Yes, if the team has CKAN administration skills, Frictionless and Table Schema experience, and time for review cycles, but the extension's version limits apply to in-house teams too. Day-to-day work, such as updating schemas and answering publishers about rejected uploads, is usually easier to keep in-house once the rules are stable. The harder parts are the first design of the rules, the upgrade work and any fork that must be tested after each CKAN patch, since those tasks need people who can read CKAN source and extension code. Check three things before you decide: whether two or more people can cover the work during leave, whether reviewers have time allocated, and whether the portal's upgrade plan is already funded. An outside team can cover the gaps in writing, under a fixed scope, or on a retainer for ongoing support.
Limits to confirm before you commit to validation
Each item below is something to test in your own environment before you commit to validation, because the answers depend on your CKAN version, the extension version and your file workloads. Together they decide whether the extension can block bad uploads at every entry point your portal uses.
Extension support for your CKAN version
ckanext-validation does not currently support CKAN 2.10 or 2.11, so a portal on either version must upgrade before it can use the extension. Confirm support for the exact CKAN release you plan to run, using the extension's repository and release notes. CKAN minor releases may include backwards-incompatible changes, so plan the CKAN upgrade and the extension version together.
CKAN release policyBundled Frictionless and Table Schema versions
The extension bundles its own Frictionless and Table Schema libraries, and those bundled versions decide which checks run and how each schema is read. Record the exact versions from the extension's dependency files before you write any schema. Then test every schema you plan to publish against that version, because a library change can alter a result even when your data and schema stay the same.
Large files and the DataStore loader
Confirm how the extension handles large files, since memory use, run time and web server timeouts decide whether a big upload finishes. Confirm the order of validation and XLoader, because XLoader is the supported loader for the DataStore and DataPusher is legacy. If both steps read the same file, a large upload may slow down or fail at either step, so test with a file close to your real maximum size.
DataStore docsHow errors surface in the interface and API
A blocked upload needs a clear message in the web form and a machine-readable response for API clients, and the web form and the API may show different errors. Test a file with known row-level errors through both paths. Check whether the Frictionless report is displayed, stored or returned only once, and confirm the status code and error structure a scripted publisher receives, so batch jobs can act on the result.
Validation for API-created resources
Many portals receive resources through resource_create and resource_update calls from harvesters, scripts and partner tools, not only through the upload form. Confirm that validation runs on API-created resources too, and that no request parameter or flag skips the check. Test each path with an invalid file, and list the resources created before the extension was enabled, since older resources may never have been checked.
How DeployOpen scopes and delivers CKAN validation work
DeployOpen approaches validating tabular data in CKAN with Frictionless as a scoped piece of work inside your own infrastructure. The first decision is which CKAN version you run, because the ckanext-validation extension does not support CKAN 2.10 or 2.11, so the plan has to start there. Each engagement is fixed-scope, with the validation rules, upload behavior and deliverables agreed in writing before work begins.
How we scope
- Confirm the CKAN version and extension release first, since ckanext-validation does not support CKAN 2.10 or 2.11.
- Agree which datasets, tabular resources and Table Schema rules are in scope before any code is written.
- The written scope records which upload paths block on errors and which only report findings.
How we build
- Install and configure the validation extension in a staging CKAN that matches production packages and Python versions.
- Write Table Schema definitions for each agreed resource, kept in version control next to the CKAN configuration.
- Test validation with clean, malformed and edge-case files, including mixed encodings and delimiters.
How we hand over
- Documentation covers the schemas, the blocking rules, the reports users see and how to change them.
- Operators receive runbook steps for upgrades, extension pinning and checking validation logs.
- A walkthrough with your publishers and data stewards covers rejected uploads and how to fix them.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Plan CKAN upgrades around the validation extension, since its compatibility decides the target version.
- Confirm extension support for each new CKAN release before upgrading, and retest validation rules afterward.

