Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm exporting a Custom List from one SharePoint instance and importing into another. The documentation says I should be able to use UpdateVersions with Overwrite to remove all items and then insert new data:

UpdateVersions:

Indicates how to resolve situations where a file to be imported to a site already exists in that site. If the UpdateVersions parameter is absent, the import operation by default uses a value of 1. The type must be any one of the following:

-Add new versions to the current file

-Overwrite the file and all of its versions (delete then insert)

-Ignore the file if it exists on the destination The default value is Add new versions to the current file.

However, despite using the UpdateVersions parameter the data is always appended regardless. Any idea why?

share|improve this question
add comment

3 Answers 3

In Powershell, you need to leverage the -Force flag.

import-spweb -identity $URL -Path "LINK_to_PATH" -Force
share|improve this answer
add comment

Confirm that versioning is enabled on your list. By default, versioning is turned off for most if not all list types.

share|improve this answer
add comment

I finally removed my site and recreate it with default team site and import my production data to UAT environment

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.