Nomad
Migrates a firm's CCH ProSystem fx Document exports into SharePoint Online, one site per client, and proves every file arrived.
- Python
- Microsoft 365
Problem
A firm leaving CCH ProSystem fx Document has thousands of clients, each a zip of documents named by GUID with an XML inventory beside them. The layout on disk means nothing, the browser and the sync client cannot carry that volume, and a tool that reports every upload as done cannot tell you whether the sites actually hold the files.
Approach
A Python tool that writes server side through Microsoft Graph with app-only authentication. It reads each client's inventory, routes every file into a fixed folder tree by class and subclass, uploads with resumable state in SQLite, verifies each file against the copy SharePoint stores, and hands the finished client to MetaConfig for its metadata. A queue runs a whole share of clients with no clicks per client.
Outcome
First live engagement for a CPA firm of about 2,300 client sites. About 33,000 files uploaded and verified on the first full day with no throttling at four parallel uploads. Release 0.7.0 is the one that ran it; 0.7.1 is current.
Nomad moves document data into SharePoint Online and tells you the truth about what happened. It started as a general tool for a technician moving a large folder into a library. It still does that, but its real job now is one kind of migration: a firm's client documents, exported from CCH ProSystem fx Document, moved into one SharePoint site per client.
What it migrates
Each client arrives as one zip or one folder holding its CCH export: the documents, named by GUID, and an XML inventory that carries the class, subclass, year and document type of every file. The inventory is the only place the files' meaning lives, so Nomad will not run a client without it.
Every client needs exactly one site, and Nomad does not create sites. The firm supplies a sites list, and each client is matched to a row by its client id or its name. No match, or more than one, skips the client before anything uploads.
The destination is a fixed folder tree on every site. A rules file maps each class and subclass to a folder, a folder template makes sure every site carries the same tree even where a folder holds nothing yet, and the year becomes a column rather than a folder. Two files in one client that would land on the same name are compared. Identical copies go up once, and different files are all kept, the later ones renamed with their source folder.
A queue for a whole share
nomad queue runs every client on a share, one at a time, with no clicks per
client. For each one it extracts the zip, builds the mapping, uploads in skip
mode, verifies every file and leaves a hand-off for MetaConfig. A client with
any failed upload is not handed off, and its work folder is kept for the retry.
Before anything starts, a Review step lists every client with the site it matched and the rule that matched it, and nothing is ticked by default, so a share of hundreds of clients never starts by accident. Authentication or throttling trouble stops the batch, and resume picks up after a crash or a reboot from the first unfinished client. Two batches can run side by side, each its own process, and a gauge shows what SharePoint's throttling did in the last five minutes.
Verification
Every uploaded file is checked against the copy SharePoint stores, by QuickXorHash, not only by size. That turned out to be harder than it sounds, because SharePoint changes some files on the way in.
- Office Open XML files (
.docx,.xlsx,.pptxand the like) in a library with columns come back a few kilobytes larger, with SharePoint's own parts added. Nomad downloads the stored copy and compares the two packages part by part. If the only differences are the parts SharePoint adds, the file is recorded asmetadata_added. Anything else fails. - Outlook
.msgfiles and the older binary Office formats come back rewritten too, larger, smaller or the same size with a different hash. They are compound files, not packages, so Nomad cannot look inside them to tell SharePoint's rewrite from corruption. They are recorded asunverified_office, which means "upload completed, and a copy is stored", and nothing more. - PDFs and everything else are verified by hash alone.
The hand-off to MetaConfig
Nomad moves files. MetaConfig, a separate tool, writes the classification columns afterward. When a client is finished, Nomad drops a small hand-off file in a folder the two tools share, with the client's file map beside it: every file's name in CCH next to its name on the site, since Nomad changes a name when SharePoint refuses a character or another file already has it.
An attended batch stops each client at MetaConfig's preview for a person to
approve. An unattended batch carries a written authorization (a name, the word
APPLY, and an expiry at most 48 hours away) that lets MetaConfig apply on its
own. When the authorization runs out, MetaConfig declines the hand-offs, and
nomad queue resend writes fresh ones under a renewed authorization without
uploading anything again.
Evidence that does not rest on Nomad's own records
A migration is not finished when the upload is. Nomad's records say what it did, and the job is to show what the sites hold.
- Reconcile reads every destination library back and checks that every file a job completed is on the site at its path.
- The coverage ledger writes one row for every export on disk, so an export that never reached a batch is a row with a reason and not an absence.
- The independent count sets the files physically in each export beside the site's file count from a tenant sweep that reads SharePoint, not Nomad.
- The handoff pack gathers the evidence for the firm in one folder: a summary with the arithmetic that should add up, one row per client, a manifest per client, and every exception.
The first live engagement
The first real run was for a CPA firm of about 2,300 client sites. On the first full day Nomad uploaded and verified about 33,000 files, skipped about 15,000 already present on a rerun, and recorded 185 file failures, with no throttling from Microsoft Graph at four parallel uploads. A tenant-wide cleanup pass, which lists the sites and reads each document library once, took about 25 minutes.
The largest source of delay was the source data. Exports made without the inventory, zero-byte zips, empty exports and exports with two clients in one zip could not be migrated. Those are not tool failures, and they belong in a better export brief.
Known limits
Stated plainly, so nobody finds them later.
- No delta capture. A document changed in CCH after its export is not migrated, and nothing detects it. A cut-over date has to be agreed.
- Original file dates are not preserved. Migrated files show their upload date. This was found by reading the code during the project and is being addressed.
- A file in an export that the inventory does not name is not uploaded, and the upload does not report it. The independent count shows it as an unexplained shortfall, and a per-client list is planned.
- About 4,000
.msgand older Office files from the first engagement are recorded as unverified, for the reason above. - Files with no folder rule go to the library root. They are visible, but not in a folder until the firm settles its rules, and moving them is done one client at a time today.
- Nomad never creates a site. The site has to exist, with its columns, before the first upload.
Still true from the start
Nomad does not use the OneDrive sync client. It writes server side through the
Graph API with app-only authentication, so there is no
synced folder, no conflict copy and no sync engine anywhere in the transfer
path. Job state lives in SQLite, so an interrupted job resumes by label. It
honors Retry-After on a 429 and slows down under load. Where the destination
is known in advance, Sites.Selected alone is enough, which limits the grant to
the sites being migrated rather than every site in the tenant.
Requirements
Windows 11 or Windows Server 2019 or 2022, Python 3.11 or newer, and PowerShell 7.x as the recommended terminal. The encrypted settings store relies on Windows DPAPI. An optional desktop console wraps the operating system's built-in web view and does everything the command line does, including the queue.
Roadmap
0.7.0 is the release that ran its first live engagement, a CPA firm of about 2,300 client sites; next is making completeness checks part of finishing every engagement.
Full roadmap →