Tag Info

Hot answers tagged

2

I have tested your code and found the problem was with the files being created during exported were not cleaned up properly on the local disk. I implemented the files deletion logic to ensure Export and Import works fine. Note, I ran the Export and Import with and without FileCompression and both are working fine. I ran my test on two Picture libraries. ...


2

SPExportObject/SPImportObject can be used to migrate the list item, but only issue that you need to take care is if you export an item from a database (e.g. a list) without exporting it's parent, then the exported item will become orphaned in the package. A package can contain multiple different orphaned objects (e.g. if you export multiple different lists ...


1

Fortunately, just before some days i was working on similar kind of tasks. I have tried with your given code. and almost Its working. But I am agree with @Falak that you should write code with proper try/catch and with SharePoint standard coding pattern. Here, i found that once your code should run perfectly, second time you should get error, because you ...



Only top voted, non community-wiki answers of a minimum length are eligible