Error moving a file protected with a sensitivity label
I am seeing intermittent errors when trying to move a Microsoft Word file between sites. The file is protected with a sensitivity label that has encryption enabled. I’m using the “Move to” option within a SharePoint library. The full error message is below.
The text was extracted from a screenshot, so may not be 100% accurate.
1 item wasn’t moved
Cannot protect. Error code is: 00000000. CallStack – – at
Microsoft SharePoint.SPGlobal.HandleComException(COM Exception comEx) at
Microsoft.SharePoint.Library.SPRequest.GetFileAsSt ream(String bstrUrl, StorePath bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob. String bstrEtag Not Match, Object punkSPFileMgr, Boolean bHonorCustomIrm, IrmProtectionParams filelrmSettings, ISPDataCallback pRequiredAuthContextCallback, Ulnt32& pdwVirusCheckStatus, Int32& plVirusVendorld, String& pVirusCheckMessage, Int32& pIVirusScanLatency, String& pEtagNew, String& pContentTagNew, SPFilelnfo& pFileProps, Guid& pgWebldReal, Guid& pgDoclibld) at Microsoft SharePoint SPFile.GetFileStream(SPWeb web, SPResourcePath fileUrl, SPFileLevel level, OpenBinaryFlags openOptions, String etagNotMatch, ISPFileStreamManager spMgr, SPFileRightsManagementSettings rightsManagementSettings, Boolean throwOnVirusFound, Boolean skipLabellrm PermCheck, SPVi rusCheckStatus& virusCheckStatus, Int32& virusVendorld, String& virusCheckMessage, String& etagNew, String& conte ntTag New, SPFilelnfo& fileprops, Guid& doclibld, Guid& webldForAuditing) at
Microsoft.SharePoint.SPFile.GetFileStreamNewOpti mizedlmpl(SPWeb web, SPResourcePath fileUrl, SPFileLevel level, OpenBinaryFlags openOptions, String etagNotMatch, ISPFileStreamManager spMgr, SPFileRightsManagementSettings rightsManagementSettings, Boolean throwOnVirusFound, Int64 numOfBytesToReadBeforeRefresh, SPVirusCheckStatus& virusCheckStatus, Int32& virusVendorld, String& virusCheckMessage, String& etagNew, String& contentTagNew, SPFilelnfo& fileprops, Guid& doclibld, Guid& webldForAuditing) at
Microsoft.SharePointDeployment.FileSerializer.Upl oadFileData(Object fileOrListltem, SPLoggerObject loggerObject, SPWeb web, Guid fileld, SPResourcePath filePath, Filelnfo filelnfo. String fileValue, Int32 authorld. String authorLoginName, Int32 editorld. String editorLoginName, String checkinComment, DateTime timeCreated, DateTime timeLastModified, MetalnfoHandler metalnfo, Int32 iVersion, Boolean isFirstVersion, Nullable 1 isLastVersion, 32 listitemid. String listlnternalName, Boolean hasNoExecuteFlag, ImportObjectManager objectManager, SerializationlnfoHelper infoHelper) at
Microsoft.SharePoint.Deployment.FileSerializer.Upl oadFileData(Object fileOrListltem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath filePath, Boolean fileExistslnDb, Nullable 1 isLastVersion, SerializationlnfoHelper infoHelper, SerializationlnfoHelper infoHelperListitem, MetalnfoHandler metalnfo, StreamingContext context) at
Microsoft.SharePoint.Deployment.FileSerializer.Cre ateOrUpdateFile(Object fileOrListltem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& filePath, Boolean fileExistslnDb, Boolean isFirstVersion, Nullable’1 isLastVersion, Boolean hasWebParts, SerializationlnfoHelper infoHelper, SerializationlnfoHelper infoHelperListitem, StreamingContext context) at
MicrosoftSharePointDeployment.FileSerializer.Cre ateOrUpdateFileVersion(Object fileOrListltem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& fileUrl, Boolean fileExistslnDb, String version. Boolean isFirstVersion, Nullable’1 isLastVersion, SerializationlnfoHelper infoHelper, XmlDocument listltemVersionsXml, StreamingContext context, ISurrogateSelector selector) at
MicrosoftSharePointDeployment.ListltemSerializer .AddOrUpdateDoclibltemVersion(SerializationlnfoH elper infoHelper, XmlDocument listltemVersionsXml, SPListltem& listltem, SPLoggerObject loggerObject, SPWeb web, Guid newld, SPResourcePath& listltemServerRelativePath, Boolean blsPublish, Boolean exists. String version. Boolean isFirstVersion, Boolean isLastVersion, StreamingContext context, ISurrogateSelector selector. Loggerstatistics stats) at
Microsoft.SharePointDeployment.ListltemVersionS erializer.AddListltemVersion(SPWeb web, SPListltem listltem, SPLoggerObject loggerObject, Guid newld. Boolean editHistory, Boolean existslnDb, Boolean isFirst, Boolean isLast, Boolean isDocLib, StreamingContext context, XmlElement listltemData, SerializationlnfoHelper listltemlnfoHelper, XmlDocument listltemVersionsXml, SPResourcePath& listltemServerRelativeUrl, ISurrogateSelector selector. Loggerstatistics stats, Guid docld) at Microsoft.SharePointDeployment.ListltemSerializer .UpdateListltemVersionData(SerializationlnfoHelper infoHelper, SPWeb web, SPListltem& listitem, Guid newld. Boolean existslnDb, Boolean isDocLib, SPResourcePath& listltemServerRelativePath, StreamingContext context, ISurrogateSelector selector) at
Microsoft.SharePointDeployment.ListltemSerializer .SetObjectData(Object obj. Serializationinfo info, StreamingContext context, ISurrogateSelector selector) at
Microsoft.SharePoint.Deployment.XmlFormatter.Cal ISetObjectData(Object obj. Serializationinfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector)
X
I am seeing intermittent errors when trying to move a Microsoft Word file between sites. The file is protected with a sensitivity label that has encryption enabled. I’m using the “Move to” option within a SharePoint library. The full error message is below. The text was extracted from a screenshot, so may not be 100% accurate. 1 item wasn’t movedCannot protect. Error code is: 00000000. CallStack – – atMicrosoft SharePoint.SPGlobal.HandleComException(COM Exception comEx) atMicrosoft.SharePoint.Library.SPRequest.GetFileAsSt ream(String bstrUrl, StorePath bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob. String bstrEtag Not Match, Object punkSPFileMgr, Boolean bHonorCustomIrm, IrmProtectionParams filelrmSettings, ISPDataCallback pRequiredAuthContextCallback, Ulnt32& pdwVirusCheckStatus, Int32& plVirusVendorld, String& pVirusCheckMessage, Int32& pIVirusScanLatency, String& pEtagNew, String& pContentTagNew, SPFilelnfo& pFileProps, Guid& pgWebldReal, Guid& pgDoclibld) at Microsoft SharePoint SPFile.GetFileStream(SPWeb web, SPResourcePath fileUrl, SPFileLevel level, OpenBinaryFlags openOptions, String etagNotMatch, ISPFileStreamManager spMgr, SPFileRightsManagementSettings rightsManagementSettings, Boolean throwOnVirusFound, Boolean skipLabellrm PermCheck, SPVi rusCheckStatus& virusCheckStatus, Int32& virusVendorld, String& virusCheckMessage, String& etagNew, String& conte ntTag New, SPFilelnfo& fileprops, Guid& doclibld, Guid& webldForAuditing) atMicrosoft.SharePoint.SPFile.GetFileStreamNewOpti mizedlmpl(SPWeb web, SPResourcePath fileUrl, SPFileLevel level, OpenBinaryFlags openOptions, String etagNotMatch, ISPFileStreamManager spMgr, SPFileRightsManagementSettings rightsManagementSettings, Boolean throwOnVirusFound, Int64 numOfBytesToReadBeforeRefresh, SPVirusCheckStatus& virusCheckStatus, Int32& virusVendorld, String& virusCheckMessage, String& etagNew, String& contentTagNew, SPFilelnfo& fileprops, Guid& doclibld, Guid& webldForAuditing) atMicrosoft.SharePointDeployment.FileSerializer.Upl oadFileData(Object fileOrListltem, SPLoggerObject loggerObject, SPWeb web, Guid fileld, SPResourcePath filePath, Filelnfo filelnfo. String fileValue, Int32 authorld. String authorLoginName, Int32 editorld. String editorLoginName, String checkinComment, DateTime timeCreated, DateTime timeLastModified, MetalnfoHandler metalnfo, Int32 iVersion, Boolean isFirstVersion, Nullable 1 isLastVersion, 32 listitemid. String listlnternalName, Boolean hasNoExecuteFlag, ImportObjectManager objectManager, SerializationlnfoHelper infoHelper) atMicrosoft.SharePoint.Deployment.FileSerializer.Upl oadFileData(Object fileOrListltem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath filePath, Boolean fileExistslnDb, Nullable 1 isLastVersion, SerializationlnfoHelper infoHelper, SerializationlnfoHelper infoHelperListitem, MetalnfoHandler metalnfo, StreamingContext context) atMicrosoft.SharePoint.Deployment.FileSerializer.Cre ateOrUpdateFile(Object fileOrListltem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& filePath, Boolean fileExistslnDb, Boolean isFirstVersion, Nullable’1 isLastVersion, Boolean hasWebParts, SerializationlnfoHelper infoHelper, SerializationlnfoHelper infoHelperListitem, StreamingContext context) atMicrosoftSharePointDeployment.FileSerializer.Cre ateOrUpdateFileVersion(Object fileOrListltem, SPLoggerObject loggerObject, SPWeb web, Guid id, SPResourcePath& fileUrl, Boolean fileExistslnDb, String version. Boolean isFirstVersion, Nullable’1 isLastVersion, SerializationlnfoHelper infoHelper, XmlDocument listltemVersionsXml, StreamingContext context, ISurrogateSelector selector) atMicrosoftSharePointDeployment.ListltemSerializer .AddOrUpdateDoclibltemVersion(SerializationlnfoH elper infoHelper, XmlDocument listltemVersionsXml, SPListltem& listltem, SPLoggerObject loggerObject, SPWeb web, Guid newld, SPResourcePath& listltemServerRelativePath, Boolean blsPublish, Boolean exists. String version. Boolean isFirstVersion, Boolean isLastVersion, StreamingContext context, ISurrogateSelector selector. Loggerstatistics stats) atMicrosoft.SharePointDeployment.ListltemVersionS erializer.AddListltemVersion(SPWeb web, SPListltem listltem, SPLoggerObject loggerObject, Guid newld. Boolean editHistory, Boolean existslnDb, Boolean isFirst, Boolean isLast, Boolean isDocLib, StreamingContext context, XmlElement listltemData, SerializationlnfoHelper listltemlnfoHelper, XmlDocument listltemVersionsXml, SPResourcePath& listltemServerRelativeUrl, ISurrogateSelector selector. Loggerstatistics stats, Guid docld) at Microsoft.SharePointDeployment.ListltemSerializer .UpdateListltemVersionData(SerializationlnfoHelper infoHelper, SPWeb web, SPListltem& listitem, Guid newld. Boolean existslnDb, Boolean isDocLib, SPResourcePath& listltemServerRelativePath, StreamingContext context, ISurrogateSelector selector) atMicrosoft.SharePointDeployment.ListltemSerializer .SetObjectData(Object obj. Serializationinfo info, StreamingContext context, ISurrogateSelector selector) atMicrosoft.SharePoint.Deployment.XmlFormatter.Cal ISetObjectData(Object obj. Serializationinfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector)X Read More