Hi,
A site contains two libraries library1 and library2. I am using the SPFile.MoveTo() method to move documents from library1 to library2.
But it results in the below error.
File exception: Microsoft.SharePoint.SPException: This operation is not supported because the destination document library contains a list data validation formula or has the EnforceDataValidation property set. ---> System.Runtime.InteropServices.COMException
(0x81070980):<nativehr>0x81070980</nativehr><nativestack></nativestack>
This operation is not supported because the destination document library contains a list data validation formula or has the EnforceDataValidation property set.
at Microsoft.SharePoint.Library.SPRequestInternalClass.MoveUrl(String bstrUrl, String bstrWebRelOldUrl, String bstrWebRelNewUrl, Int32 grf)
at Microsoft.SharePoint.Library.SPRequest.MoveUrl(String bstrUrl, String bstrWebRelOldUrl, String bstrWebRelNewUrl, Int32 grf)
There is no validations specified in validation setting for library2 and the EnforceDataValidation for library2 is set to false.
Why does this error occur? How to get this code working?
Thanks in advance,
dhijit