How a team moves Excel and CSV data into XWiki applications
A team tracking assets, contracts, procedures or registers in spreadsheets can move those rows into structured, searchable XWiki records with the xwiki-contrib Batch Import Application, which imports rows from xls or csv files into an application built with App Within Minutes. The effort depends mainly on how cleanly the sheets map to a data model: consistent column headers, one record per row, and stable identifiers make the import predictable, while merged cells, mixed data types in one column, and several entities packed into one sheet add design and cleanup work before any data moves. This is a data import path, not a page-by-page wiki migration. Each row becomes a record in an application class you define, so the decisions are about fields, types and validation rather than page history or wiki syntax. The Batch Import Application is licensed under the LGPL 2.1, so confirm its license terms and the version compatible with your XWiki release before you plan around it.
Start by writing the target application on paper. List each column, the field type it should become (text, number, date, list, user reference or link), which column is the unique key, and which sheet columns hold more than one value that should be split. Decide whether each sheet is one application or several linked ones, such as assets linked to owners. This design is the largest driver of duration and is independent of the spreadsheet tool. Ask whether the spreadsheets contain personal or confidential data, since that determines who may view the imported records and where the test files are stored while you work on them.
Run test imports on a copy of the instance, not on the production wiki. Use a sample of rows that includes the awkward cases: blank cells, dates in mixed formats, duplicate keys, and long text. Check each imported record against its source row, and check permissions on the resulting pages. Plan the update path before the first full import. The Batch Import Application is designed for loading rows into an application, so confirm with the extension documentation how re-importing a changed sheet matches existing records and whether it overwrites edits made in XWiki. Agree in writing who owns the spreadsheets after cutover, because a sheet that remains the source of truth will keep diverging from the wiki unless you retire it or define a sync rule.
Which spreadsheet features map cleanly to XWiki application fields
This table compares common spreadsheet features with their closest equivalent in an App Within Minutes application that receives rows through the Batch Import Application. Use it to decide which columns can move as they are, which need cleaning first, and which must be rebuilt by hand before you write a column mapping.
| Spreadsheet feature | XWiki equivalent | Maps cleanly? | Migration notes |
|---|---|---|---|
| One row per record | One object per page or object entry in an application | Yes | Confirm the key column is unique before import, since repeated keys cause overwrites or duplicates on re-import. |
| Typed columns (dates, numbers, yes/no) | Typed application fields such as date, number and boolean | Not applicable | Normalize date formats and decimal separators first, because mixed formats in one column are the most common cause of failed rows. |
| Lookup values from a list tab | Static list field or a link to another application | Not applicable | Export the list tab, then decide whether values are fixed choices or records that need their own application. |
| Multi-value cells (comma-separated) | Multi-select list field | Not applicable | Split values into a consistent delimiter. Check the batch import documentation for the delimiter it expects and confirm it in a test import. |
| Formulas and totals | Computed values or script-based fields | No | Formulas do not carry over as live logic. Export the calculated results as values, then rebuild any logic you still need by hand. |
| Merged cells | No direct equivalent | No | Unmerge and repeat the value on every row, or restructure the sheet so each record sits on one row. |
| Notes and attachments | Page content and file attachments | No | Cell comments and embedded files are not read from csv. Export them separately and attach them manually or with another route. |
| Sheet per year or per region | One application with a field for year or region | No | Combine the tabs into one file with a discriminator column, and add that column to the mapping before import. |
| Linked sheets and cross-file references | Relationships between applications | No | Links between workbooks become IDs in the source. Plan to rebuild the relationship with matching keys after both applications exist. |
Documented import paths for spreadsheet data
XWiki offers more than one documented way to bring spreadsheet rows into a wiki, and they differ in who runs them and what they assume about your application. The cards below cover the open-source Batch Import Application, the paid XWiki Data Import service, and the checks you should make in your own environment before choosing one.
Batch Import Application for xls and csv
The xwiki-contrib Batch Import Application reads rows from an xls or csv file and creates one object or page per row in an application built with App Within Minutes. It is licensed LGPL 2.1, so you install and operate it inside your own XWiki. Confirm that the extension version you install matches your XWiki version before you plan the import, because the application and the XWiki line must be compatible.
Batch Import sourceXWiki Data Import service
XWiki SAS offers a paid Data Import service that lists Excel and csv files among its supported sources, alongside Confluence, MediaWiki, DokuWiki and file manager documents. It suits teams that want the vendor to run the conversion rather than building the mapping themselves. Ask in writing which file formats, column layouts and target application types are in scope, and whether the output is delivered into your own instance.
Data Import serviceConfirm file formats before committing
Both routes depend on how the spreadsheet is saved. Check whether your team uses legacy xls, modern xlsx, or csv exported from a locale with different delimiters and decimal separators. Confirm encoding, header row placement, merged cells and date formats in a sample file. Treat any format you have not tested as unsupported until a test import proves otherwise.
Match application versions
The target App Within Minutes application and the extension must be checked against the XWiki version you run. Stable, LTS and intermediate LTS lines release on different schedules, so a version pairing that works on one line may not on another. Record the XWiki version, extension version and application version together in your change record before the test import begins.
Choosing between the two routes
The open-source route keeps the work inside your team and your infrastructure, but your staff own the mapping, testing and reruns. The service route moves that effort to the vendor under a written scope and a quote. Compare them on who will maintain the mapping after cutover, since a one-time import often becomes a recurring update task.
Sequence for a spreadsheet import with a test run and cutover
This sequence moves spreadsheet rows into a structured XWiki application in a controlled order, so each stage is checked before the next one starts. It ends with the spreadsheet kept as a read-only reference and then retired, with the owner confirming the final state.
Inventory sheets, owners and usage
List every workbook and tab that feeds the process, including the people who edit each one, how often rows change, and which formulas or macros depend on them. The data owner for each sheet confirms which rows are current, which are archive, and which fields people actually use. Done when the inventory names one accountable owner per sheet and a row count for each, so the import has a fixed source to measure against.
Design the target application in App Within Minutes
Build the application with App Within Minutes so each spreadsheet row maps to one structured XWiki object, using field types that match the data (text, number, date, list, user). Decide which column is the stable identifier used later for updates, since a sheet row number is not a reliable key. Done when the application has a reviewed field list and the data owner signs off on the identifier and the allowed values for each list field.
Map spreadsheet columns to application fields
Write a mapping table with one line per column: source header, target field, data type, required or optional, and the transformation, such as trimming spaces, splitting a combined cell or converting a date format. Flag columns with no target field and decide whether they are dropped or stored as a text field. Done when every column has a documented decision and the owner has reviewed the table against a sample of real rows.
Run a test import on a copy in a non-production instance
Install the Batch Import Application on a non-production XWiki instance, load a copy of the workbook and run the import using the mapping table. Record every row that fails or lands in the wrong field, then correct the mapping or the source file and repeat until the run is clean. Done when a complete run finishes without unexplained errors and the team can list each remaining exception with a decision.
Validate counts and sample records
Compare the number of imported records with the number of data rows in the source, after excluding headers, blank rows and rows marked as archive. Then open a sample of records, including the first, last, and rows with dates, lists, special characters or empty optional cells, and check each value against the spreadsheet. Done when counts match, the sample passes, and the owner records the check results in writing.
Import into production and confirm the cutover
Freeze edits to the source workbook for the agreed window, run the same import that passed the test on the production instance, and repeat the count and sample checks against production. Confirm that users can find and edit records and that permissions on the application match the access model agreed in design. Done when the owner accepts the production counts in writing and the cutover date is recorded.
Run a parallel period with the spreadsheet read-only
Keep the workbook available as a read-only reference while users work in XWiki, and tell teams that new and changed records are made only in the application. Review discrepancies as they come up and decide whether each one is a training issue, a mapping gap or a source error. Done when the owner reports no open discrepancies and the team agrees the application is the system of record.
Retire the spreadsheet and keep an archive copy
Store a final, dated copy of the workbook in an approved archive location under your records rules, then remove edit access and any shared links, and update the process documents to point to the application. If the team relies on scheduled exports or formulas that read the file, confirm those consumers are moved first. Done when the original file is no longer editable by staff, the archive copy is confirmed, and the owner signs off the decommissioning.
How column mapping decisions change the import
A one-to-one mapping copies a spreadsheet column into a single field on the XWiki object, such as a text, number, date or list property. It is the simplest case and the one most imports start with. The trade-off is that flat fields are easy to fill and easy to display, but they only work when the source column holds one clean value per row. Once a column carries mixed meanings, the flat field starts to hide structure that searches and reports will later need.
- Type fidelity: Confirm that dates, decimals and currency values arrive as the property type you intended, since spreadsheets often store them as text.
- Header names: Map from header names you control, and keep a written mapping file so the next import reuses the same choices.
- Empty cells: Decide whether an empty cell should clear an existing value on update or leave it untouched.
- Leading zeros and identifiers: Check that codes such as postal codes or account numbers keep their leading zeros.
- Hidden characters: Look for trailing spaces and non-breaking spaces that break exact-match lists.
In the test import, open several imported pages and compare each field against the source row, including the first and last rows of the file.
Sometimes one source column holds several facts, such as a full name or an address, and sometimes several columns together make one fact, such as a first and last name. Splitting or merging is a transformation step that happens before values reach XWiki fields. Keeping the parts separate gives better filtering and sorting, while merging keeps the record simpler to read. The choice affects every later query that touches those values, so it should follow how staff will search the application.
- Split fields: Separate first name, last name and title when people will filter or sort by them.
- Merged fields: Combine columns only when the value is always displayed together and never searched on its parts.
- Delimiter risks: Check that the delimiter used to split a cell, such as a comma or semicolon, does not also appear inside the values.
- Source of truth: Record which column wins when two columns disagree after a merge.
- Preparation work: Decide whether the transformation happens in the spreadsheet before export or in a preprocessing step you control.
In the test import, count rows where the split produced an unexpected number of parts, and inspect a sample of those rows by hand.
A lookup column refers to another record, such as a department, a product or an owner. In XWiki you can store that value as plain text, or model it as a reference to a page or object in another application. Plain text is quick to import and tolerates typos, but it cannot reliably drive links, permissions or roll-up reports. A modeled reference supports navigation and aggregation, but every referenced record must exist before the rows that point to it are imported, and every spelling variant must be resolved to the correct target.
- Import order: Load the referenced application first, then the rows that point to it.
- Key choice: Match on a stable key such as an employee number rather than a display name that can change.
- Unmatched values: Decide whether an unmatched value fails the row, creates a new target record or lands in a review list.
- Duplicate targets: Check for near-duplicate names in the lookup source, such as differing capitalization or abbreviations.
- Maintenance: Confirm who owns the lookup list after the import and how new values are added.
In the test import, count unmatched references and confirm that each reference opens the intended target record.
A multi-value cell contains several items in one spreadsheet cell, such as a list of tags, skills or approvers separated by a delimiter. You can store the cell as a single text value, split it into a list property, or split it into separate related records. A text value is the least work but cannot be filtered per item. A list property supports selection and search across items. Separate records support the most detail, such as a date per approval, but they add rows, pages and maintenance. The right choice depends on whether people need to query individual items.
- Delimiter consistency: Confirm that the same separator is used in every row, and note any cell that mixes separators.
- Allowed values: Compare each item against the list of allowed values in the target field.
- Order: Decide whether the order of items carries meaning and whether the import must keep it.
- Empty items: Remove blank entries created by trailing delimiters.
- Updates: Decide whether a later import replaces the whole list or adds new items only.
In the test import, check rows with the most items and rows with unusual delimiters, since those are where list handling most often fails.
What drives the cost and duration of a spreadsheet import
This table lists the factors that change the effort of an Excel or CSV import into XWiki applications, who carries each cost, and whether it is one-time or recurring. Use it to shape the questions you put to a partner before agreeing a fixed scope, since most drivers are set by your data rather than by the tool.
| Driver | Why it changes effort | One-time or recurring | What to ask for in a quote |
|---|---|---|---|
| Number of sheets and structure | Each sheet with its own columns, merged cells or multiple header rows needs its own mapping and test pass. | One-time | A per-sheet mapping breakdown and the assumed header layout. |
| Data quality and duplicates | Inconsistent dates, codes, blank required fields and duplicate keys add cleaning and decisions about which row wins. | One-time, unless source files keep arriving dirty | Who cleans the data, the duplicate rule, and how rejected rows are reported. |
| Number of target applications | Each App Within Minutes application needs its own fields, mapping and validation before rows can load. | One-time per application | Effort listed separately for each target application and its fields. |
| Attachment handling | Files linked to rows, such as PDFs or images, need a separate path and a check that links resolve after import. | One-time | Whether attachments are in scope, their volume and the link validation method. |
| Validation rules | Required fields, allowed values and cross-field checks must be designed, built and tested against real rows. | One-time, with changes when rules change | The list of rules, who signs off on them and how errors are logged. |
| Number of test cycles | Each test import exposes mapping errors that need correction and a rerun, so effort grows with each cycle. | One-time | The number of test imports included and what each cycle must prove before cutover. |
| User access model | Who can import, edit and see records in each application determines permission setup and checks. | One-time setup, with ongoing changes as roles change | How rights are assigned and whether group rules are set up during the build. |
| Recurring updates | If the spreadsheet is refreshed regularly, the update logic, matching keys and rerun procedure must be maintained. | Recurring | Whether updates are one-off or scheduled, the matching key and who runs each update. |
Updating records after the first import
The first decision for this section is which system owns each record after the initial load: the spreadsheet stays the source of truth and XWiki is refreshed from it, or XWiki becomes the only system of record and the spreadsheet is retired or made read-only. The answer determines everything else. If the spreadsheet remains the source, every later import must be treated as a sync, and someone must own the rule that stops people from editing the same record in both places. If XWiki becomes the record, the spreadsheet should be frozen at cutover, and the team should decide who edits pages directly and whether the workflow needs page-level rights in the application's access settings.
Re-importing a file that was already loaded is the most common way to create duplicates. Whether a re-run updates an existing page or creates a new one depends on how the Batch Import Application matches incoming rows to existing pages, and that behaviour must be confirmed for the XWiki version you run before any production file is loaded twice. Ask the implementer to run a test import against a copy of the wiki, then count pages by application class before and after. Use a stable key column, such as an employee or asset identifier that never changes, rather than a name or title that people edit. Keep that key in the mapping file so each row resolves to the same page every time.
The mapping file is the document that turns spreadsheet columns into application fields, and it needs an owner after go-live. Name one person or team who approves changes to column order, field names, the key column and any value transformations, and store the file under version control or a controlled share with its change history. When the spreadsheet template changes, the mapping must change with it and be retested on a copy before the next import. Ask your implementer to hand over the mapping, the test import results and a short runbook for the import, so the knowledge does not sit only with the person who built it.
What usually goes wrong with spreadsheet imports
Spreadsheet imports rarely fail on the import itself. They fail on the data that arrives in the file, on pages that land with the wrong access, and on the old file that someone keeps editing after cutover. Each card below names one risk and the check that prevents it before rows reach production applications.
Inconsistent date and number formats
A spreadsheet can show 03/04/2024 while one user typed the same value as a day-first date, and a number such as 1,250 may be stored as text in one column and a decimal in another. The Batch Import Application maps values to the field types in your App Within Minutes application, so mismatched values can import as wrong dates or fail. Normalize every date and number to one format before export, and check a sample of rows from each source sheet in the test import.
Hidden characters and encoding problems
CSV files exported from Excel often carry a byte order mark, non-breaking spaces, trailing line breaks or a different encoding than the one the import expects. These characters appear invisible in the spreadsheet but break matching on keys, split values across fields or produce garbled accented text in XWiki pages. Confirm the file encoding and the delimiter in the import settings, and search the file for stray control characters before the test import.
Duplicate and orphaned rows
Spreadsheets often contain the same record on two rows, or rows that point to a customer, asset or owner ID that no longer exists in any other sheet. Re-running an import without a stable identifier can create a second page for every record. Choose one unique key column for each application, reject or review duplicates in the file, and decide in advance what happens to rows whose references do not resolve.
Loss of formulas and change history
The import carries the values a formula produced, not the formula itself, and it does not reconstruct the edit history that lived in the spreadsheet's version log or shared-file revisions. Teams then lose the logic that explained a calculated figure and the reason it changed. Decide which calculated columns become stored values, which become application logic, and where the original workbook is archived for reference.
Permissions left open on imported pages
Pages created by a batch run inherit the rights of the account that ran the import, and sensitive rows can become readable by groups that should never see them. A spreadsheet that was restricted by file sharing may end up visible across the whole wiki. Before the production run, set the space rights and the account used for the import, then test read access with a user from each group that should see only part of the data.
Parallel runs and edits to the old file
Once the wiki goes live, people often keep updating the original spreadsheet while others edit the imported pages, so two versions of the same record drift apart. Re-importing the file later then overwrites manual edits or leaves stale data in place. Name one system of record for each dataset and freeze the source file at cutover, and state in the application's help page where updates now happen.
Questions teams ask before importing spreadsheets into XWiki
What drives the cost of importing Excel or CSV data into XWiki?
The cost depends mostly on how many sheets there are, how clean the data is, and how many fields need a defined type in the target application. Internal time is the largest component when your own staff build the mapping, run test imports and review results. External work is billed only if you buy it, and it is quoted from a written scope, so ask for the sheet count, row count, column list and the number of target applications in that scope. The Batch Import Application itself is open source under LGPL 2.1, so its license does not add a fee. Ask any partner to split the quote into one-time build work and any recurring support you want afterward.
How long does a spreadsheet import project take?
Duration depends on the number of sheets, how many rows need cleanup, how many fields are linked to other pages, and how many review cycles your data owners need. Your sheet owners often take longer than the technical import, because they must confirm field definitions and sign off on test results. No duration figure is given here, so ask for a timeline tied to specific milestones: field mapping approved, first test import in a non-production instance, reviewed sample pages, and production import. A fixed-scope plan lets you compare that timeline with your internal schedule.
What does the client need to provide before an import starts?
You need three things before work begins. First, named owners for each spreadsheet who can answer questions about meaning, valid values and history. Second, written field definitions that explain each column, its data type, whether it is required and how it relates to other sheets. Third, a non-production XWiki instance where test imports can run without touching live content. Also provide a copy of the source files, access to the instance with rights to create applications, and a decision on how duplicates and updates will be identified. Missing any of these usually adds rework later.
Can my team import Excel and CSV files alone with the Batch Import Application?
Yes, a team with XWiki administration skills can do a simple import alone, provided the target application already exists and the data is consistent. The xwiki-contrib Batch Import Application reads rows from an xls or csv file and creates records in an application built with App Within Minutes. Complex work is harder: mapping columns to typed fields, handling multiple linked sheets, cleaning inconsistent values and planning later updates all require careful testing. Start with one sheet, run it on a non-production instance, check the results against the source, and only then expand the scope.
When does a partner add value to a spreadsheet import?
A partner adds the most value when the import involves several linked sheets, a large or messy dataset, strict audit expectations or a deadline that internal staff cannot cover. DeployOpen plans, implements and tests these imports inside your infrastructure, and documents the mapping so your team can maintain it. XWiki SAS also publishes a Data Import service that covers Excel and csv files among other sources. Its published list rates are 1200 EUR per day for consulting, which requires a Business or Enterprise support plan, and 1500 EUR per day for training. Those rates come from XWiki SAS and are not DeployOpen prices, so confirm current terms directly with XWiki SAS.
What goes wrong most often in spreadsheet imports, and how do we check for it?
The most common problems are inconsistent date formats, merged cells, hidden characters, numbers stored as text, duplicate keys and empty required fields. Each one can create records that look correct but fail searches, filters or links. Check imports by comparing row counts and a random sample of records against the source, reviewing field types after each test import and confirming that linked pages resolve correctly. Keep the source file and the import settings with each test run so you can reproduce results and explain differences to reviewers.
How do we update records in XWiki after the first import?
Updating records is a separate design decision from the first load. Decide which column uniquely identifies each record, whether a later file replaces existing values or only adds new rows, and who approves changes to shared records. Test the update path on a non-production copy with a changed sample file before using it on live content. Keep the source file for each run, and record who ran the update, since spreadsheet-driven edits to live knowledge pages can change content that other people depend on. Confirm with your own team how often the spreadsheet will change, because that frequency drives the operating effort.
Does importing spreadsheet data affect access control or compliance evidence?
It can. Imported records inherit whatever rights the target application and its pages allow, so review who can view and edit the destination space before loading personal or confidential data. Record the source file, the import date, the person who ran the import and the test results, since those records support change management and data handling reviews. DeployOpen prepares systems and evidence for compliance assessments, but it does not issue audit reports or certifications. Your auditor or certification body decides whether your controls are sufficient.
How spreadsheet rows flow into XWiki applications
The flow starts with an xls or csv file and moves through column mapping in the Batch Import Application into an application built with App Within Minutes. A test import into a non-production XWiki instance comes before the production import, and the check at that gate is whether each row lands in the right fields. Later changes go back through the same mapping, so the spreadsheet stays the source for updates to existing records.
Spreadsheet rows move through mapping, a test import and validation before production.
How DeployOpen scopes and delivers a spreadsheet import
DeployOpen approaches Excel and CSV import into XWiki as a fixed-scope piece of work inside your own infrastructure. We start from the spreadsheets you need to move, the application structure they should become, and the checks your team needs before records go live. The written scope sets what is built, tested and handed over.
How we scope
- Inventory the spreadsheets, sheet tabs and row counts that are in scope for the import.
- Agree the target App Within Minutes application, its fields and the column-to-field mapping in writing.
- Record which records must be created, which must be updated later, and who owns the source file.
How we build
- Install and configure the Batch Import Application in your XWiki environment, on the version you have approved.
- Run test imports on copies of the sheets and review the generated pages against the mapping.
- Adjust validation, cleanup rules and update keys until a repeat import produces the expected result.
How we hand over
- Document the mapping, the import steps, the update procedure and the known data quality limits.
- Walk your administrators through a test import and an update run on a non-production wiki.
- Deliver the scripts, configuration and runbook so your team can repeat the import without us.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer if you need them.
- Ask for a quote built from the written scope, covering setup, test rounds, handover and any retainer.

