Migrate from DKAN to CKAN

Moving from DKAN to CKAN means turning a Drupal-hosted DCAT-US data.json catalog into CKAN datasets, resources and DataStore tables without breaking public links. Effort depends on field mapping, file volume, DataStore tables and redirects.

On this page

Migrate from DKAN to CKAN without breaking your public catalog

The short answer is that moving a DKAN catalog to CKAN means mapping metadata, moving files and planning links, and each of those takes deliberate work before any script runs. DKAN, which runs on Drupal, publishes its catalog as a DCAT-US file at /data.json that conforms to the Project Open Data schema v1.1, and it exposes a metastore API at /api/1/metastore. CKAN keeps its own dataset, resource and extras model, so every DKAN field has to land in a CKAN field, a custom extra or a documented decision to drop it. Read the DKAN harvest documentation to see how DKAN describes its catalog export before you draft the mapping.

The scope comes down to two measurable questions: how much of the catalog needs field mapping, and how many files and tabular resources must move. A catalog that uses only standard Project Open Data fields is a far smaller mapping job than one with custom fields, several publishing organizations or dataset types that vary. Export /data.json and pull the metastore records for every dataset type you publish, then count the distinct field patterns. Next, separate resources that are uploaded files from resources that are remote links, because uploaded files must be copied into CKAN storage while links need to be checked and kept. Tabular resources add a further step, since they may also need loading into the CKAN DataStore.

Keep the public catalog working through the cut-over by treating old DKAN addresses as part of the scope from day one. Dataset landing pages, resource download links and any outside tool that reads /data.json will fail silently if nobody plans for them, and public users rarely report broken links quickly. Ask your implementation partner for the field-by-field mapping in writing before any data moves, and confirm which external consumers depend on the Project Open Data structure, since some may need a compatible export after the move. Agree on who signs off each mapping decision, because the publishers who know the metadata are rarely the people who run the portal.

Which DKAN features map cleanly to CKAN and which do not

This table compares DKAN features with their closest CKAN equivalents and the work each one needs. Read the Action column first: Direct rows copy across, Value transform rows need conversion, Custom schema rows need a field CKAN does not provide by default, Owner decision rows need a choice from the data owner before import, and Rebuild rows have to be redone in CKAN. The main takeaway is that catalog metadata moves with some decisions, while themes, custom modules and API clients have to be rebuilt in CKAN.

Source capabilityCKAN equivalentMigration notesAction
Title and descriptionDataset title and notesCopy both after removing Drupal markup from descriptions before loading.Direct
Modified date (Project Open Data required field)Dataset metadata_modifiedCKAN sets metadata_modified on import, so keep the source date in a custom field.Custom schema
Identifier (Project Open Data required field)Dataset name (URL slug) plus a custom identifier fieldSlugs must be unique and lowercase. Keep the DKAN identifier so harvested records and old links can be matched.Value transform
Publisher and contact point (Project Open Data required fields)Organization and maintainer fieldsPublisher usually maps to the owning organization. Confirm which person each contact point names before filling maintainer fields.Owner decision
Access level (Project Open Data required field)Private flag or a custom fieldCKAN has no standard access level field. Decide how public, restricted and non-public values map to private datasets or a custom field.Owner decision
DKAN organizationsCKAN organizationsMap each DKAN organization to one CKAN organization. Agree the list and owners before import, since every dataset needs an owning organization.Owner decision
DistributionsResourcesDownload files to your storage and point resource URLs there. Normalize format and media type values to the strings your CKAN portal uses.Value transform
Drupal roles and accountsCKAN users, sysadmins and organization rolesPlan for password resets and recreate accounts in CKAN. Assign organization roles again after import, based on current access reviews.Owner decision
Drupal themes and custom modulesCKAN themes and extensionsDrupal themes must be rebuilt. Custom module behavior needs a CKAN extension or a documented decision to drop it.Rebuild
DKAN metastore API at /api/1/metastoreCKAN Action API, such as package_show and package_searchEndpoints and response shapes differ, so update scripts and consumers. Confirm each client's needs before cut-over.Rebuild

Documented export and import paths from DKAN to CKAN

These are the documented building blocks for moving DKAN datasets and resources into CKAN. Your team must confirm whether a DKAN-specific importer exists for the target CKAN version before choosing a path, because that decision changes how much mapping and scripting you own. The cards cover the catalog sources, the scripting client, the DCAT harvester and the DataStore loaders.

Read the DKAN catalog

DKAN publishes a DCAT-US catalog at /data.json, which follows the Project Open Data schema v1.1, and a metastore API at /api/1/metastore. Compare the two sources, because the metastore record may carry fields the catalog file omits. Check which fields are filled for your datasets, including distribution URLs, publisher and modified dates, and whether unpublished records appear. Those gaps set the size of the field mapping work.

DKAN harvest docs

Script packages with ckanapi

The ckanapi Python client calls the CKAN action API, so a script can run package_create for each mapped dataset and then upload its resource files. Store the DKAN identifier on every dataset so a rerun updates existing records instead of creating duplicates. Confirm that the target schema accepts every mapped field before the first full run, and decide which CKAN organization each DKAN publisher maps to.

Harvest DCAT RDF with ckanext-dcat

The ckanext-dcat RDF harvester fits only if your DKAN site can emit DCAT RDF, because the harvester reads the RDF the source publishes. Confirm the RDF output and its endpoint in your own DKAN version before you plan around it. The extension is supported on CKAN 2.10 and 2.11, so check your target release against that list first. If the source cannot emit RDF, this path drops out and the scripted path carries the work.

ckanext-dcat repository

Load tables with XLoader

XLoader is the officially supported tool for loading uploaded or linked files into the CKAN DataStore, so plan it for tabular DKAN resources. Each loaded table then serves row-level queries, downloads and SQL through the Data API. Check that your resource formats are ones XLoader handles, that the CKAN server can reach the files during the load, and that the DataStore database and its read-only user are configured before the batch run.

CKAN DataStore docs

DataPusher is legacy

DataPusher appears in older guides and examples for DataStore loading, and the CKAN documentation now treats it as legacy, so do not build the pipeline around it. If an earlier runbook names DataPusher, replace that step with XLoader and test the change on a copy of one dataset first. Confirm with the documentation for your CKAN version which loader your installation ships with and supports.

How metadata, files and redirects move through the cutover

The diagram starts on the Drupal host, where the DKAN site exports its data.json catalog and metastore records, and where resource files sit in DKAN file storage. These cross into the migration workstation, where cleaning produces candidate CKAN fields that a reviewer approves in the mapping sheet before anything loads. The approved mapping drives the ckanapi load into CKAN datasets and resources. Tabular files take a second hop through XLoader into the DataStore. The old-to-new URL map is installed in a redirect layer on the old host before cutover. Confirm that every old DKAN dataset URL resolves to a new CKAN URL, and that each trust boundary crossing matches your approved transfer path.

Metadata, files and redirect paths across three trust boundaries.

Migration sequence from inventory to DKAN decommission

The sequence moves the catalog in six stages, each with a client input and a checkable output, so the CKAN portal is trusted before DKAN is turned off. Inventory and mapping come first so data owners sign off on the schema before any data moves. Each step names what you provide and what DeployOpen delivers, and parallel running and link checks give the evidence needed to retire DKAN.

  1. Inventory DKAN content and file locations

    DeployOpen reads the DKAN catalog through /data.json and the metastore API, then records every dataset, resource, user account and file location in a working inventory. You provide administrator access to DKAN, read access to the database and file store that hold uploaded files, and a named owner for each dataset. DeployOpen delivers the inventory as a spreadsheet and export files, with counts per dataset and resource, a list of resources that point to external URLs, and a list of files with no known owner. The step is done when the data owners confirm in writing that the inventory is complete.

  2. Agree field mapping and CKAN schema

    DeployOpen maps each Project Open Data field in the DKAN catalog to a field in the target CKAN schema, and flags fields that have no equivalent so the owners decide how to keep them. Where a DCAT profile applies, the team checks whether the ckanext-dcat schemas already cover the fields before adding custom ones. You provide data owners who can answer for their datasets, and decisions on which DKAN fields must survive, such as contact points, license and temporal coverage. DeployOpen delivers a written field mapping, a draft CKAN schema with any custom fields, and a list of open decisions. The step is done when each data owner signs off on the mapping for their datasets.

  3. Run a pilot load on a subset

    DeployOpen loads a chosen subset of datasets into a non-production CKAN instance, including several tabular resources that go into the DataStore through XLoader, and checks each result against the inventory. You provide a non-production CKAN environment in your infrastructure, or confirm the one DeployOpen builds for the pilot, and you select pilot datasets that cover different organizations, licenses and file types. DeployOpen delivers a pilot report listing loaded datasets, failed resources, DataStore row counts compared with the source files, and the fixes made to the mapping. The step is done when the data owners pass the pilot and the load can be repeated without manual edits.

  4. Run a parallel period with both portals

    DKAN and CKAN both stay live during a parallel period while the full migration runs, and acceptance testers use CKAN alongside the existing portal. DeployOpen runs comparison scripts that count datasets and resources on each side, check every resource link for a successful response, and compare DataStore row counts with the source tables. You provide acceptance testers, a named owner who triages discrepancies, and the length of the parallel period agreed in writing. DeployOpen delivers a comparison report after each run, a list of broken or mismatched items with owners, and a rerun after fixes. The step is done when counts match and each remaining difference is explained and accepted in writing.

  5. Cut over DNS and redirects

    The public hostname moves to CKAN, and old DKAN URLs redirect to their matching CKAN dataset pages using the mapping from the inventory. You provide DNS and web server change control, the list of URL patterns that external sites and search engines use, and a rollback plan approved by your change board. Harvesters that read the old catalog address are repointed to the CKAN endpoints, and you confirm each change with its owner. DeployOpen delivers the redirect rules, a test set of old URLs with expected targets, and a cut-over runbook with a rollback step. The step is done when sampled old URLs resolve to the correct CKAN pages and the change is recorded in your change system.

  6. Decommission DKAN after the retention window

    After the retention window agreed in writing passes with no open discrepancies, DKAN is taken offline, and its database, files and configuration are archived under your retention policy before anything is deleted. You provide the retention window, the archive location, and approval from the records owner for deletion. DeployOpen delivers a final export of DKAN content and configuration, a checksum record for the archive, and a decommission checklist covering DNS, scheduled jobs, API keys and the Drupal servers. The step is done when the archive passes the integrity check defined in the runbook and the records owner signs off that DKAN is removed.

What drives the cost and duration of a DKAN to CKAN migration

This table lists the factors that most change the effort of a DKAN to CKAN move and what moves each one up or down. Read each row against your own catalog, Drupal host and target CKAN version, and inventory metadata quality and identity needs first, since they are the hardest to estimate. Cost components are paid per scope item, so a quote follows from the written scope that lists these factors as they apply to you.

DriverWhat raises the effortWhat lowers the effort
Datasets and resourcesLarge catalogs with many resources per dataset, each needing a mapping check and a URL or file decisionA current data.json export with a known count, and resources pruned before the move
Metadata qualityMissing titles, inconsistent keywords, broken publisher fields or unvalidated dates in data.json (Project Open Data v1.1)Validated catalog before export, with a field-level mapping sheet agreed with data owners
Files to moveMany or large uploaded files, files in private storage, or files behind access checksFiles at stable URLs that can be copied in bulk, with checksums recorded for each file
Tabular resources for the DataStoreMany CSV or spreadsheet resources needing DataStore loading, plus inconsistent headers or encodingsClean headers and a small set of tables chosen for the DataStore, with XLoader as the loader
Custom DKAN fields and Drupal content typesCustom fields, nodes or taxonomy terms that need a CKAN schema field or a decision to drop themFew custom fields, and a documented decision for each one before the build starts
Identity and SSOSAML2 single sign-on through ckanext-saml2auth, plus role mapping from SAML attributesFew accounts, or an identity provider already tested against CKAN 2.10 or later
Target CKAN version and extensionsTarget 2.12.0 with ckanext-dcat, which the repository lists as supported on 2.10 and 2.11A target version that every required extension supports, confirmed in writing before scope is signed
Drupal host end of lifeDKAN running on a Drupal 10 host, which the core release schedule lists as end of life on December 9, 2026Current supported Drupal and DKAN versions, or a verified export taken before the host is retired
Parallel runOld and new portals run side by side, with harvest, redirects and sync to maintainSingle cut-over with a frozen export and a short read-only window on the DKAN site

What usually goes wrong in DKAN to CKAN migrations

Most failures in a DKAN to CKAN move come from a few places: the metadata map, identifiers, files, the DataStore, the Drupal host schedule and the period when both catalogs run. Each card names one failure, what makes it likely in your catalog, and the check to run before the cut-over.

Project Open Data fields without a CKAN home

DKAN publishes its catalog as a DCAT-US data.json file that follows the Project Open Data schema v1.1. Some of those fields, such as accessLevel, publisher hierarchy and DKAN-specific metadata, have no clean CKAN home in a default dataset. Build the field map before any load and label each field as a core field, a custom schema field, an extra or a dropped field. Have the data owner sign off on every dropped field, because the DKAN site may be retired before anyone notices the gap.

DKAN harvest docs

Identifiers and links that break

DKAN dataset identifiers may not match the IDs and URL names CKAN assigns during the load, so links to old DKAN pages can fail. Grant reports, README files, partner systems and search engine results keep pointing at the old addresses. Store the original identifier from data.json as a custom field on each CKAN dataset, then build a redirect table from every old page to its new dataset page. Test a sample of old links against that table the day before the cut-over.

Resource files missing or oversized

Resource entries in data.json point at file URLs that can change when DKAN's file storage or Drupal paths change, and some files may be too large to fetch within the cut-over window. A file that returns an error, a renamed file or a file that a CKAN upload limit rejects shows up as a dataset with a broken download. Crawl every resource URL, record the HTTP status, file size and checksum, and compare the results after the move. Confirm the upload and proxy size limits on the CKAN host before the test load.

Tabular resources that fail DataStore loads

The DataStore serves row-level queries and the Data API only for tables that load cleanly, and loads can fail on encodings, header rows, mixed types in one column or very large files. XLoader is the supported loader, and DataPusher is legacy, so build the test around XLoader. Load a sample of every tabular resource and compare row counts and column names with the source. Log each failure with its cause and plan a second pass for those resources.

CKAN DataStore docs

Drupal host timing forces the schedule

Drupal 10 reaches end of life soon, and a major Drupal release is scheduled in the same weeks. If the DKAN host cannot stay on a supported Drupal line, the calendar can pull the cut-over forward before the CKAN side is ready. Ask the DKAN maintainers which Drupal and PHP versions DKAN supports, and check that against your host's plan. Decide early whether a DKAN upgrade is needed before the move, and treat that upgrade as a separate project with its own test.

Drupal release schedule

Drift during the parallel run

While both catalogs run, publishers keep editing DKAN, so CKAN can fall behind with new datasets, changed descriptions and replaced files. Decide which catalog is the source of record for each period, set a freeze or a delta load for changes, and record the exact cut-over moment. Compare dataset counts, resource counts and checksums between the two systems on a fixed schedule, and assign one owner to every discrepancy. Drift that goes unchecked turns the final sync into a second migration.

Questions teams ask before moving from DKAN to CKAN

How much does a DKAN to CKAN migration cost?

Neither platform adds a license fee for the software, so the spend goes to labor, infrastructure and testing. Drupal has no paid edition, and CKAN is open source under the GNU Affero General Public License v3.0. The main cost components are:

  • Inventory, field mapping and owner decisions, paid as internal staff time or as scoped design work from a partner
  • Export and conversion scripts for the DKAN catalog and its files
  • The CKAN environment: servers or containers, PostgreSQL, Solr, Redis and a web server
  • Extensions, theme changes, testing and cut-over
  • Redirects, training and retirement of the DKAN site

The migration work is one-time. The servers, security patching and CKAN upgrades recur every year. Ask any quote to break costs down by these components, state the assumed dataset, resource and file counts, and list which extensions are included. DeployOpen's engagements are fixed-scope, and a quote follows from the written scope.

How long does a DKAN to CKAN migration take?

No single duration fits every portal, so ask for a schedule built from the written scope. Duration depends on the number of datasets and resources, how consistent the DKAN metadata is across publishers, how many Project Open Data fields need a decision before they map to a CKAN schema, the number and size of resource files, and how many tables need loading into the DataStore. Each owner decision that waits on a person adds calendar time, so name decision owners early. Review cycles and the cut-over window also set the end date. The platform can add pressure too. Drupal 10 reaches end of life on December 9, 2026, so if your DKAN site runs Drupal 10, confirm its upgrade or retirement plan now. Drupal 11 is the current major version.

What must our team provide for a DKAN to CKAN migration?

Your team provides access, decisions and control over the public address. Expect to supply:

  • Catalog access: a read-only account or database export for the DKAN site, plus access to the /data.json catalog and the metastore API at /api/1/metastore
  • Owner decisions: how Project Open Data fields map to CKAN fields, which organization owns which datasets, and which identifiers stay stable
  • File access: the location and credentials for resource files, so they can be copied to the new storage
  • DNS and web server control: the ability to point the domain at CKAN and add redirect rules

Name one decision owner per area and one technical contact for cut-over. Unresolved mapping questions stall the build, so confirm who can sign off each choice before work starts.

Can our internal team run a DKAN to CKAN migration alone?

Yes, an internal team can run the migration if it has the skills and time, but plan for the operating work that follows. CKAN installed from source needs Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis, with uWSGI and Nginx recommended for production. The team also needs DKAN and Drupal knowledge to export the catalog correctly, and someone who can own the mapping decisions. Check these before committing:

  • Platform skills across Linux, databases, search indexes and web servers
  • Time for the migration, which competes with existing work
  • An owner for CKAN after launch, including patching and upgrades

A fixed-scope engagement puts scope and deliverables in writing before work starts. Compare both options against the same written list of deliverables.

Does DKAN have to stay online during a migration?

Usually yes. Keep DKAN serving the public until CKAN is built, loaded and checked. The build needs a current copy of the catalog and files, and publishers keep editing while the new site is under construction. Plan an initial export, then a final delta export at cut-over, with a short freeze on edits in DKAN during that window. Confirm with publishers which edits, deletions and new uploads must be captured in the final export. After cut-over, keep DKAN in read-only mode until redirects and downloads are confirmed, then retire it. Agree the freeze length and retirement date with your data owners, since both depend on your publishing rhythm.

Will old DKAN dataset links break after migration?

They will break unless you map them. DKAN and CKAN build dataset and resource addresses differently, so old URLs do not resolve to new ones by default. Build a redirect map from each old DKAN dataset and resource address to its CKAN equivalent, keyed on identifiers that stay stable through the migration. Then add redirect rules at the web server or proxy, which requires DNS and web server control. Cover more than web pages. API consumers, bookmarked downloads and any harvester that reads the catalog file will also need a working path. Test a sample of old links before cut-over and again after DNS changes. Keep the redirects for as long as publishers and external users rely on the old addresses, and confirm that retention period with your data owners.

Is ckanext-dcat enough to migrate a data.json catalog?

Probably not on its own. The ckanext-dcat repository provides DCAT-AP v1, v2 and v3 schemas, DCAT RDF endpoints and an RDF harvester, and it is supported on CKAN 2.10 and 2.11. DKAN's /data.json file follows the Project Open Data schema v1.1 as JSON, so confirm which input formats the harvester accepts before you plan around it. Then check the rest of the work:

  • Field mapping from Project Open Data to your CKAN schema, a set of decisions your owners must make
  • Resource files, which are copied separately from the metadata
  • Tabular data loaded into the DataStore with XLoader, since DataPusher is legacy
  • Compatibility: CKAN 2.12.0 was released on August 26, 2026, so confirm extension support for your target version

Treat the extension as one tool in the pipeline, and test it on a sample catalog first.

How DeployOpen scopes and delivers a DKAN to CKAN migration

DeployOpen treats each DKAN to CKAN move as a fixed-scope engagement, with the scope, deliverables and timeline agreed in writing before work starts. The work runs inside your own infrastructure, from reading your DKAN catalog through to redirects and handover, and ongoing support is available as a retainer.

How we scope

  • Inventory the DKAN site: datasets, the /data.json catalog, metastore records, resource files and any custom Drupal modules.
  • Agree the field mapping from Project Open Data v1.1 to your CKAN dataset schema before any loading starts.
  • The written scope lists which DKAN sites, datasets, file types, URL redirects and CKAN extensions are in and out.

How we build

  • Read data.json and the metastore through scripted exports, then load records into a CKAN staging instance.
  • Map Project Open Data fields to CKAN dataset, organization and resource fields, using ckanext-dcat where it fits.
  • Move resource files, load tabular resources with XLoader, and test Data API queries against the DataStore.

How we hand over

  • Verify record counts, field values, file checksums and sample redirects, then record results against the agreed scope.
  • Document the CKAN deployment, the mapping decisions, the redirect table and the cut-over steps for your team.
  • Hand over the running portal with runbooks, access records and the backups set up during the engagement.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers once the portal is live.
  • Plan later CKAN upgrades against the release policy, which separates patch releases from minor releases with breaking changes.
  • Review redirects and Data API queries after launch, and before DKAN is switched off.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.