If this problem occurs during project development, you need to migrate a list from website a to website B.
I checked a lot of information and did not find the implementation method in the moss management function.
Therefore, it can only be implemented through programming.
After Google, only three articles about content migration are found on the Internet.ArticleThe method is the same. Export and Import again.
Links to the three articles are as follows:
Http://sharepoint.orivers.jp/blogs/orivers/archive/2007/03/19/spexport.aspx
Https://forums.microsoft.com/MSDN/ShowPost.aspx? Postid = 1885455 & siteid = 1
Https://forums.microsoft.com/TechNet/ShowPost.aspx? Postid = 1460700 & siteid = 17
The content of the third article is suitable for the migration list function.
If the website is migrated, there are relatedCodeFor reference.
The code for list migration is not written here. In the above article, I also use the code.
The preceding Code indicates that the Migration list must have the same name in the two websites.
For example, if you want to migrate list5 from website a to website B, list5 will still be used as the list name during the migration. If list5 already exists in website B, an error occurs.
This problem has plagued me for more than two hours, and I have tried it for many times.ProgramSo you can only use the manual modification method.
The procedure is as follows:
Step 2: export the list of website a as a cab file
Step 2: extract the cab file and replace the name of the list in the XML file. For example, if list7 is used on website a and list5 is used on website B, replace list7 with list5 in the XML file. Generally, three files need to be replaced.
Step 2: Use makecab to compress the replaced file into a cab file. A ddf file is provided for reference.
. Option explicit
. Set compressiontype = mszip
. Set uniquefiles = "off"
. Set cabinet = on
. Set maxdisksize = CDROM
. Set maxcabinetsize = 0
. Set folderfilecountthreshold = 0
. Set diskdirectory1 = D: \ cab
. Set cabinetname1 = export. Cab
; Filelist
00000000. dat
00000001. dat
00000002. dat
00000003. dat
00000004. dat
Exportsettings. xml
Manifest. xml
Requirements. xml
Rootobjectmap. xml
Systemdata. xml
Usergroup. xml
Viewformslist. xml
Step 2: Create a list5 list on website B. You must use the same list type as list7 of website a. For example, the list5 list is created based on the custom list ..
Step 2: import the recompressed cab file to website B.
This is the only method I have found.
I have also tried the replication function in other third-party management tools, but the program encountered an error and failed to achieve the goal.
We hope there will be a better solution to this problem.