We are currently migrating from sharepoint 2007 to 2010 on a dozen servers, due to technical reasons we cannot employ the usual methods and instead we are using the webservices and requests to transfer files and keep file integrity.
This seems to work on a majority of the files and servers, unfortunately due to the sheer datamass and connection issues at times some files have become lost. Also since sharepoint has a tedious habit of renaming files when a special character is present the current method I am employing will not work.
To clarify this is what i currently do: I map the Document Library to a network drive. And then run the following powershell script:
get-childitem $mypath -rec | where {!$_.PSIsContainer} | select-object Name, FullName, LastWriteTime, Length | export-csv -notypeinformation -encoding UTF8 -delimiter '|' -path D:\temp\20xxserver.csv
I run this on both servers and then compare via excel what is missing in the 2010 deployment from the 2007 deployment, I use the =IF(ISNA(VLOOKUP(B2;A:A;1;FALSE); B2; "") To see what is missing from the columns.
The issues im having: 1) Certain filenames will get changed for example "Press Release 10.07.2011-Internal.2012" or something along those lines will have part of the string removed due to the special characters such as dots commas slashes etc. Thus a direct comparison of what filenames exist is quite frankly not the best option
2) I have considered listing them by an ID number but unfortunately that is not an option with the current script
3) Since the UniqueID of a file should not change even when transfering/migrating files i have considered using that but the problem is that i have not found a solution to do this in powerpoint, which leaves me to believe that the only available option in this case would be to modify the existing migrationtool (or write a new one) to output the files into a csv list with the corresponding unique id number. Unfortunately i am somewhat under a deadline so if any one knows of a method of retrieving the ows_UniqueID via powershell and exporting to CSV i would be grateful.
If anybody else has a good suggestion or an improved method of checking the integretiy of data migration within the document library i would appreciate it.
EDIT: I have resolved the issue to a certain degree and have posted my Powershell scripts here: https://sharepoint.stackexchange.com/questions/83260/sharepoint-powershell-exporting-document-library-items-id-info-to-excel-for-2007
Unfortunately if you have the Hotfix KB:2506146 installed then you are going to run into issues.