Updating Previously Migrated Pages - Granular Approach
With the granular approach you can review the list of previously migrated pages before you update them.
WikiTraccs reports which pages it detects as outdated. You then choose which pages to overwrite in SharePoint Online.
How to detect pages that have been changed since the last migration?
First, start a migration run to get the update state of previously migrated pages. Leave Update outdated SharePoint pages off while you prepare the list.
When a migration starts, WikiTraccs checks for corresponding pages in SharePoint. It compares Confluence page data with the source data that the last migration stored in SharePoint. It writes the result to progress log files.
Note
This migration run doesn’t have to finish. Just let it work long enough to create the progress log files, then stop the migration. But you can also let it finish.See Using progress log files to get insights for the location of these files.
Note
Each migration will create new progress log files, once when starting and once when finishing the migration run. Look at the date and time of those files to choose the most recent ones.One of those types of progress log files contains information about the update state of already migrated pages; that’s the files with 25-update-state-of-migrated-pages in their name.
Here’s a screenshot showing progress log files for 3 migrated spaces (each having 3 progress log files):

Those spaces have been migrated before and when starting another migration WikiTraccs checked for outdated pages, and found two spaces to have outdated pages.
You can quickly see how many outdated pages there are as WikiTraccs writes this information to the file name of the progress log file, like marker-x-needupdate-y-other.
In the screenshot above, one space has 2 pages that need an update, for the other space it’s 3 pages. One space is up-to-date since the marker part is missing from the file name.
How to tell WikiTraccs to update outdated pages?
You tell WikiTraccs which pages it should update by marking those pages in the progress log files, and copying those files to the WikiTraccs.GUI\input folder.
Here are the steps:
- locate a progress log file with 25-update-state-of-migrated-pages and marker in its file name
- this progress log file contains information about outdated pages
- note: to force updating pages that WikiTraccs didn’t detect as changed, you can also use a file without marker in its file name
- note: WikiTraccs v1.36.7 and newer cannot process progress log files that were created by older versions; start a migration to get new ones
- open the progress log file in a text editor - this file contains a header surrounded by
+++(ignore this), followed by multiple lines, each one representing a migrated page (you want to look at those)- note: as of WikiTraccs v1.36.7, the first line after the header contains the column names; the list of columns explains all values
- take note of the update state in each line, like uptodate or needsupdate
- a line might look like this:
SPACEKEY Page 123456789 Page Title /display/SPACEKEY/Page+Title 2023-08-31T10:16:22 2023-07-10T13:26:24 2023-07-10T13:26:24 needsupdate https://contoso.sharepoint.com/sites/target ... - the values in this line (like SPACEKEY, page ID 123456789, etc.) are separated by tabulator (the “tab key”)
- note: you might know CSV-files, where values in each line are separated by comma or semicolon; here tabulator is used instead
- a line might look like this:
- mark pages you want WikiTraccs to update by adding an x right after the update state in the page’s line
- make sure to separate the update state value (like needsupdate) and the x you add with exactly one tab character; note: this tab character might already be there
- the line then should look like this:
SPACEKEY Page 123456789 Page Title /display/SPACEKEY/Page+Title 2023-08-31T10:16:22 2023-07-10T13:26:24 2023-07-10T13:26:24 needsupdate x https://contoso.sharepoint.com/sites/target ...- note the x after the update state that marks the page for update - keep all other values of the line as they are
- save the progress log file when you are finished marking pages for update
- now copy this modified progress log file to the input folder, that is located next to the logs folder; note: both the logs and input folder are in the same location as WikiTraccs.GUI.exe, which you used to start WikiTraccs
- run WikiTraccs.GUI
- start a migration as usual, by selecting the Start transformation button in WikiTraccs.GUI
Tip: Excel might help in step 4
You can select all lines after that second+++ marker, copy them to the clipboard, and paste them into Excel. Excel should now properly display the data, allowing filtering and modifications. Set the x marker as needed. Then, in Excel, select all lines again, copy them to the clipboard, and paste them back to the file, replacing the original lines. This should even preserve the tabs that separate the values (but you should double-check that). To keep Excel from changing values like page IDs, format the cells as Text before pasting.WikiTraccs looks at the input folder when a migration starts. It automatically processes all progress log files it finds in there. Pages marked for update will now be migrated again, overwriting corresponding existing pages that are present in SharePoint.
Note: As of release v1.36.7, WikiTraccs updates each marked page in the SharePoint site that is named in the page’s line. This site must still be part of the migration configuration. If you changed the mappings in the meantime, create new progress log files first.
After finishing the delta migration, delete the progress log files from the input folder; otherwise WikiTraccs will process them again and again, with each started migration.
How does the delta migration differ from a normal migration?
There are certain differences when WikiTraccs finds and processes progress log files from the input folder.
If there are pages marked for update:
- WikiTraccs will only migrate those pages marked for update and skip any spaces that have been marked for migration in the Space Inventory
- WikiTraccs will not remove any files from the input folder
- you have to remove those files manually, otherwise WikiTraccs will migrate them again and again, for each migration you start
- WikiTraccs will not write progress log files for updated pages
- to get updated progress log files, remove any files from the input folder (to end delta migration mode) and start a regular migration; new progress log files will then be created that should reflect that pages are now up-to-date
Notes about limitations of delta migrations
There are some points to be aware of when it comes to delta migrations.
Modification detection
When Detect changed files and comments on migrated pages is on, a new or edited attachment or comment can mark a page as needsupdate, even when the page version and date stay the same. The last column of the page’s line then shows the reason source-file-or-comment-newer. If this check fails, the state is cannotdetermine with reason source-file-or-comment-check-failed. File and comment change detection
To force an update, put x in Overwrite for that page, including for a page marked uptodate. WikiTraccs migrates the page and its attachments again.
Page titles and page links
WikiTraccs derives the file names of SharePoint modern pages from Confluence page titles. That means that changing a page’s title in Confluence can cause the following:
- duplicate pages being created in SharePoint, since the updated page gets a new file name; WikiTraccs does not rename or remove the existing page
- page links can break in SharePoint, when other SharePoint pages link to a page by a name that now changed due to the page being updated
Note that this does only apply when page titles change in Confluence between an initial migration and a subsequent delta migration. So those changes should be kept to a minimum between migration runs.
Changes of SharePoint pages
Changed SharePoint pages (that have been marked for update) will be overwritten when running a delta migration.
Keep in mind that when marking a page for update, this will forcefully overwrite the target SharePoint page. Even if this SharePoint page was modified since the initial migration.
Performance
The delta migration is less efficient compared to the initial migration. More requests to Confluence might be made compared to bulk operations being done in the initial migration.
Please get in touch if you encounter any issues, or have suggestions that would make your life easier.